by someguy on Apr.26, 2006, under Uncategorized
So I was wondering why for the life of me vim’s netrw wasn’t working under Cygwin. I would call something like:
$ vim scp://myuser@myserver//some/path/to/file
And vim would stupidly give me a new file called “scp://myuser@myserver//some/path/to/file”. Even passing vim a debug flag wouldn’t let on to the problem — and I could see that Cygwin provided me with the plugin already, so that wasn’t it. Well, I had to explicitly set the path to scp it turns out, even though it was in my PATH!! How goofy. scp in vim not working for you? Add this to your .vimrc in your home directory:
let g:netrw_scp_cmd="/usr/bin/scp -q"
Thanks, Elr for setting me on the right path. Ah – and if gvim whines at you about fontconfig, I had to copy the font dirs from /usr/X11R6… to ~/.fonts.