Bcvi - run vi over a 'back-channel'
sshmenu.sourceforge.net
sshmenu.sourceforge.net
/home/jon
$ hostname
snowball2
/home/jon
$ cd /stonepath:~
/scp:stonepath:/home/jon
$ hostname
stonepath
Pretty cool!If you're already logged into the box with SSH then being able to type 'vi file' on the server and have the editor window pop up on your workstation actually turns out to be really handy. IMHO it's easier to set up than sshfs too.
sshfs yourname@server /some/where
How can the setup of bcvi be easier then this oneliner?
But yes, of course you can do the same stuff with sshfs and if that's your preferred tool you should definitely use that.
Rather, the "sshfs" command is the replacement for the "ssh" command, and "bcvi --install" is a complete extra step.
Here is how you do it: vim scp://server//path/to/document
On the server I just install vim and scp -r .vim* to the server on the desktop I spend most of the time using emacs and only vim when I don't have emacs open and need to do a quick edit.
Tramp mode as stated is painfully slow and emacs doesn't really work for me in terminals as well as vim.
Probably only if you have a mouse connected to your computer. It is much easier for cutting/pasting between documents in different windows in a gui. I understand there are plugins for vi that work (I use vi most of the time), but it's easier for me to just use vim. Seems like to a first-order approximation gvim = vi + gui plugin
vim has to be built with X11 (gvim) support though b/c vim and gvim are really the same binary, IIRC (gvim = vim -g).
If you're an Emacs user, probably no particular advantage. I use GVim because as a GUI app it allows me to use my mouse for stuff like selecting areas and copy/pasting. I also like the workflow of having my file open for editing in a separate window and getting my shell prompt back straight away.
However, PuTTY only switches on XTerm mouse reporting when an app needs it, so it should be easy enough to bind ":set mouse=a"/":set mouse-=a" to a hot key, and toggle mouse support on and off depending on the required operation.
What kind of problems are you facing running emacs in terminal? I always run emacs in terminal (wrapped inside a screen session) and I have found no problem so far.
I run emacs-trunk/rxvt with 256 colors/bash. But have also used gnome-terminal.
I suggest trying zsh.
I frequently do this, instead: ":r !cat"
For me, it's just <F8>, then pasting, then pressing <F8> again. This works because of the following line in my .vimrc which I highly recommend:
set pastetoggle=<F8>If you use a different editor then it should be pretty easy to hack up a plugin that launches your preferred editor instead. The plugin API docs give an example of launching GNOME gedit: http://search.cpan.org/perldoc?App::BCVI::Plugins