On 11 October 2006 18:15, Frank Fesevur wrote: > I've tried his test case and Mark is right. When a symlink is created > with a win32 path, vim can not create the swapfile. When a symlink is > created with POSIX filenames there is no problem.
Well of course not. Cygwin - as a special feature - interprets DOS paths. VIM has no notion of them, so when it reads the symlink content and tries to figure out which directory it is pointing to a file in, it can't understand what's going on. The solution I'm afraid is "WDDTT" WRT creating cygwin symlinks with dos paths. Cygwin can do magical path translation when someone passes an argument to open(...), but there's no way it can know when a program reads a path from somewhere and manipulates it itself. Maybe the base-files package should create the symlinks to cygdrive paths in the first place? It solves the problem: [EMAIL PROTECTED] ~> cd /etc [EMAIL PROTECTED] /etc> ln -s /cygdrive/c/WINDOWS/system32/drivers/etc/hosts cyghosts [EMAIL PROTECTED] /etc> ls -la | grep hosts lrwxrwxrwx 1 dk Domain Users 46 Oct 11 18:31 cyghosts -> /cygdrive/c/WINDOWS/system32/drivers/etc/hosts lrwxrwxrwx 1 dk Domain Users 37 May 18 13:17 hosts -> C:\WINDOWS\system32\drivers\etc\hosts [EMAIL PROTECTED] /etc> vim hosts E303: Unable to open swap file for "hosts", recovery impossible "hosts" [dos format] 29 lines, 1101 characters Press ENTER or type command to continue [EMAIL PROTECTED] /etc> vim cyghosts "cyghosts" [dos format] 29 lines, 1101 characters ... although I can see problems arising when someone uses mount to rename the cygdrive mount. Maybe it would be worth providing a notation that means 'cygdrive, no matter how it may have been renamed. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/