Re:Don't waste your time by cd-ing in the terminal
by __david__ on Saturday February 19, 2011 @04:37AM
(#2238791)
Sounds like you want Emacs' tramp. On your local emacs, open a file in the form "/user@remote-ssh-host:file" and it will grab the remote file and edit it locally. Crazily all the emacs version control commands and stuff like M-x compile and M-x grep all work in the remote context. Very cool stuff.
Obviously this requires that you use Emacs instead of Vim though. Don't be afraid though, the grass is pretty green over here :-).
Re:Don't waste your time by cd-ing in the terminal
by moe on Saturday February 19, 2011 @10:58AM
(#2239216)
No need to switch to an inferior editor. ;-)
Vim has this functionality built right in: http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#netrw
However, as said above, for me Tramp/netrw are kludges that tend to add more problems than they solve. A real solution can't be constrained to a particular editor.
Re:Don't waste your time by cd-ing in the terminal
by lukeschlather on Saturday February 19, 2011 @01:41PM
(#2239566)
In my experience, tramp was even more reliable than sshfs. Both need work before they are truly effective solutions.
Though the latency of my satellite connection outweighs the shortcomings of sshfs. The thing about tramp is that where sshfs hangs up directory listing and file loading, tramp regularly hangs up the editor. (And tramp should really turn off autosave by default.)
I started trying to build out something like this based on vim's netrw stuff but it never really worked out. I'm not even sure if what I want is part of vim or if it's some nebulous other tool.