Using Macvim over ssh

skeletalmonkey picture skeletalmonkey · Mar 16, 2011 · Viewed 13.8k times · Source

My project involves working on a large codebase on a remote server. I'm constantly editing multiple files, so scp'ing files back an forth is not possible. I've got my local Macvim setup just the way I like it, with multiple plugins including ctags.

It is at all possible to use Macvim over ssh in such a way that I am easily able to browse to and open files from within Macvim running locally?

Getting ctags to work without it being installed on the remote server would be even better but I suspect not possible...

Also an issue is the fact that the remote server is setup with someone else's .vimrc that I don't want to use, but can't overwrite.

Answer

Cody picture Cody · Mar 16, 2011

The following command will open a file in MacVim over ssh:

:e scp://[email protected]/path/to/file

I suspect this might not be completely what you're looking for as it will only give you one file at a time.

If you could mount a share from the target system locally that would work as well.