Code is Love

Doh. Vim’s netrw under cygwin.

by 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.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...