Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Cheers,

Chrsi

share|improve this question
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.