Efficient use of gvim over the network

I am currently using vim in a telnet window to edit code (very old school!). There is a lot of source code (mostly C), so I use tags, cscope, etc. to get around. This is normal as far as possible, but latency of the network can do every keystroke, which is not so good!

I would like to use gvim on my Windows PC (or any editor that can be configured for this):

  • Edit files remotely via FTP (gvim can already do this)
  • Use the TAGS file, which is either stored locally or on the server (it is probably more efficient to use it on the server, then I do not need FTP every file). I assume that having created the file, then an FTP connection to the right place on my local machine will be fine.
  • Run shell commands as if I were in a file directory on the server (make, various scripts, etc.). I have ssh access to the machine, so I can’t think that this will be a problem.

I am a little familiar with vimscript, so I don't mind doing a bit of bonding. I thought that I could not be the only person who ever wanted to do this, so please here.

As I said - if there is a decent editor that has this "built-in", then I do not mind switching!

+5
3

SSH vim.

:e scp://remote.host.com/project/file

SSH make :

:!ssh remote.host.com '(cd project; make)'

Ctags

ctags , scp://remote.host.com/project/ . -

:%s#^\(\w\+\)\t#\1\tscp://remote.host.com/project/#

. ': set tags = local_ctags/tags' () .

+6

'tags' Vim, TAGS , , Vim ftp:// scp:// .

:!ssh ...

, , , ?

+2

How to set local local directory? You can export it as an SMB share, mount NFS, or there are several equivalents of the SSH file system (sshfs) available for Windows.

+2
source

All Articles