Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently an emacs user, but thought I would come back and take another look at Vim for fun.

My client machine is Ubuntu, and I frequently work on other ubuntu servers within my network, emacs and tramp is really nice in this regard, I can just connect to a file via sftp and then easily navigate to it's parents/children/sibling, just as if I was dealing with a file on the local file system.

With Vim I can sftp to a file, but none of the navigation stuff works, when I use :e or fuzzy file search, vim still thinks I'm back on the client machine. If I try to :cd to the sftp directory I get an error.

Is there anyway I can get the same file/folder navigation regardless of whether I'm looking at an sftp folder or a folder on my client machine?



share|improve this question
up vote 5 down vote accepted

If you mount the SFTP folder in nautilus it will show up under ~/.gvfs and any app can access the files there.

share|improve this answer
Wow, I never knew about the .gvfs folder before. Very cool, not just for my current problem. Thanks – ChrisInCambo Jun 11 '10 at 5:02

This may not be exactly what you are looking for, but what works for me is to log into the other machine with ssh, usually into a GNU Screen session: "ssh -t user@host screen" once there, I open up vim in one terminal and do other work in another terminal. I usually end up with a couple of instances of vim for different files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.