views:

122

answers:

2

Hello, Is it possible to create a project based on a remote directory (on an ftp server) in VIM, using the Project plugin?

+2  A: 

Check out the netrw plugin. However, in general I've found development easier when files are local and I have a good revision control system (like git) to move files to and from the server.

Peter
+2  A: 

It's not true that vim doesn't have internal capabilities to open remote files. The first poster was correct, netrw is built into later versions of vim and it's awesome. I use it all the time to edit pages on website via ftp and sometimes over ssh.

Try:

:e ftp://user@machine/path

I seem to remember creating a .netrc file so that I didn't have to type in my user/pass all the time.

man ftp (and search for .netrc assuming you're using vim on unix and not windows)

Benj
When I did this alot I tended to add a shortcut key in my .vimrc file so that I wasn't always typing the full edit line in.nmap \b :e ftp://user@machine/path
Benj
Wow, I don't know how I never found that in the documentation. I guess I just skimmed over the "standard plugins" section. Thanks for correcting me. (I would still suggest mounting or distributed version control for anything substantial, though.)
Jefromi