Wednesday, October 17, 2012

Re: Vim under cygwin

On 2012-10-17, Andrew Long wrote:
> On 12 Jul 2012, at 17:06, Andrew Long wrote:

> > Begin forwarded message:
> >
> >> From: "Long, Andrew"
> >> Subject: Vim under cygwin
> >> Date: 12 July 2012 10:18:32 GMT+01:00
> >> To: andrew...
> >>
> >>
> >> 0126792@XP037234 ~/NRock/Projects/dbJnlStats/working
> >> $ vim -gS Session.vim
> >> cygwin warning:
> >> MS-DOS style path detected: C:\winnt\profiles\0126792\vimfiles\plugin
> >> Preferred POSIX equivalent is: /home/0126792/vimfiles/plugin
> >> CYGWIN environment variable option "nodosfilewarning" turns off this
> >> warning.
> >> Consult the user's guide for more details about POSIX paths:
> >> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> >>
> >> 0126792@XP037234 ~/NRock/Projects/dbJnlStats/working

> > The message above (sometimes) comes out of a fresh XTerm session
> > when I start vim using a saved Session.vim file. I've tried to
> > locate the offending file using egrep on all the .vim files in
> > my vimfiles folder (which has a soft link of '.vim' pointing at
> > it!)also in the Session.vim file, but no matches.
> >
> > It doesn't seem to cause any real problems, but it's a message
> > I'd like to get rid of. Any suggestions as to how I can find the
> > problem and put it right, please?
>
> Think I might have a clue... As the box is fundamentally a Windows
> one (running with CYGWIN) I thought I'd configure my home
> directory so that I could use either the Cygwin version or the
> native version by using the native window naming conventions
> (vimfiles, _vimrc, _gvimrc) and then soft-linking them to the
> UNIX-style names (.vim, .vimrc, .gvimrc). The theory being that
> WIndows would work using the real names and Cygwin would
> understand the '.' notation and use that.
>
> However, I never use native Vim on windows so I decided to move
> back to real Unix-style naming... and since then the warning
> hasn't appeared.

I have such symlinks in place, too, for just that purpose and have
never had a problem. Perhaps you used a Windows-style path name
when you created the symlink from ~/.vim. That, "ls -d ~/.vim"
should have shown something like this,

/home/0126792/.vim -> /cygdrive/c/winnt/profiles/0126792/vimfiles

and I'll be it looked like this instead,

/home/0126792/.vim -> C:\winnt\profiles\0126792\vimfiles

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: