Tag Archives: winscp

–servername FTP

A quick tip for using Aubrey’s gVim (my gVim), or regular gVim, with WinSCP or other FTP applications that use editors. I use the following syntax to open the first file in a gVim instance called FTP, then every file after that will also open in the same window (called FTP) as tabs (sorry, vertical splits don’t work).

"C:Program FilesVimvim73gvim.exe" --servername FTP --remote-tab-silent

Using VIM with NERDTree over FTP/SFTP using ExpanDrive in Windows 7

[iframe width=”100%” height=”380″ src=”http://www.youtube.com/embed/nSeCRTj-KzA?hd=1″]

Note: ExpanDrive did not support regular FTP and was really slow saving/etc.

Now that I am using Vim, I noticed that I was having problems editing files over FTP/SFTP. I couldn’t use NERDTree and my other client, WinSCP, would open a new window (or tab) of gVim when I used an external editor. I wanted to browse an FTP/SFTP natively so that I could use NERDTree and edit as if I was editing locally.

The solution I found was using ExpanDrive, a program that mounts FTP/SFTP locally as a Windows drive. Once I mounted a drive, and chose a file to edit, I could use NERDTree to browse for more or use :vsp and drag a file on that split.

In the video I show it off a little.