d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Question About Ssh And Linux
Prev123Next
Add Reply New Topic New Poll
Member
Posts: 2,902
Joined: May 23 2012
Gold: 6,360.00
Jun 11 2012 03:33pm
Quote (MsRailgun @ Jun 10 2012 02:05am)
Is it possible to SSH into another server (another linux environment) and open that server's files in, say a text editor with a interface(and not in the terminal)? If so, is there a special option/command to do this?


ssh -X account@server

//edit:
or just google "x forwarding"

This post was edited by slacksmash on Jun 11 2012 03:34pm
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 11 2012 04:39pm
Quote (MsRailgun @ Jun 9 2012 08:16pm)
I've tried X forwarding and it's rather slow on my laptop... to a point where I rather just use the hotkey and commands.


X forwarding is the fastest you're going to get for an editor with a clickable UI. Any other option is going to be slower.

L2vim or emacs.

If it's slow on your laptop, you may want to plug it into a hard line instead of using wifi.

This post was edited by irimi on Jun 11 2012 04:39pm
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jun 11 2012 08:28pm
I know that feeling....today was my first class and we had to use this fucking VI editor that yells at you every time you do something that you are used to (like hitting backspace)
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 12 2012 07:14am
Quote (Eep @ 12 Jun 2012 03:28)
...fucking VI editor that yells at you...

just keep pressing backspace till everybody gets annoyed. maybe they give you another editor then (or just disable the bell)
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 12 2012 11:26am
Quote (Eep @ Jun 11 2012 07:28pm)
I know that feeling....today was my first class and we had to use this fucking VI editor that yells at you every time you do something that you are used to (like hitting backspace)


vi is awesome. :)
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jun 12 2012 05:45pm
Quote (irimi @ Jun 12 2012 12:26pm)
vi is awesome. :)


seems useful, but damn it will take awhile for me to get used to
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 12 2012 06:05pm
all you really need to get used to is that there's two modes of operation - navigation and editing mode. by default you're in navigation mode, where you can use shortcuts/commands to manipulate large (or small) areas of text.

when you hit "i" you enter insert mode, which allows you to type/edit like you normally would. to switch out of insert mode, hit esc.

aside from that, :w to save, :q to quit, :wq to save and quit (done from navigation mode)

you can slowly learn the features one by one (esp if you use vim, which most unix/linux boxes have), and become reasonably proficient at it to do a lot of stuff with it.

This post was edited by irimi on Jun 12 2012 06:06pm
Banned
Posts: 2,525
Joined: Jan 2 2012
Gold: 0.01
Warn: 10%
Jun 12 2012 06:36pm
Don't like interactive editors? There is always sed ;)
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jun 12 2012 08:38pm
Quote (irimi @ Jun 12 2012 07:05pm)
all you really need to get used to is that there's two modes of operation - navigation and editing mode.  by default you're in navigation mode, where you can use shortcuts/commands to manipulate large (or small) areas of text.

when you hit "i" you enter insert mode, which allows you to type/edit like you normally would.  to switch out of insert mode, hit esc.

aside from that, :w to save, :q to quit, :wq to save and quit (done from navigation mode)

you can slowly learn the features one by one (esp if you use vim, which most unix/linux boxes have), and become reasonably proficient at it to do a lot of stuff with it.


Yeah I quickly caught onto the difference between edit/navigation

I just need to figure out all the cool shortcuts.
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 13 2012 05:07am
if you want to learn the "h,j,k,l" you can play this game: http://wordwarvi.sourceforge.net
you have to fight against the evil emacs ;)

if you finally want your vim-keybindings in firefox, then I recommend vimperator (got also the feature to search for links and follow them, so you don't have to use your mouse)

(or vimprobable is also a nice browser, much more lightweight and much faster started)
Go Back To Programming & Development Topic List
Prev123Next
Add Reply New Topic New Poll