On 30/11/08 00:24, Mr. Shawn H. Corey wrote: > On Sun, 2008-11-30 at 00:08 +0100, Tony Mechelynck wrote: >> Actually, 'iskeyword' should be set by an ftplugin, not a syntax >> script >> (and by :setlocal, not :set, to avoid clobbering the settings for >> other >> files and the defaults for future new files of a different filetype). >> The current $VIMRUNTIME/ftplugin/perl.vim is: >> >> " Vim filetype plugin file >> " Language: Perl >> " Maintainer: Dan Sharp<dwsharp at hotmail dot com> >> " Last Change: 17 Jul 2008 >> " URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin >> >> (and my version of Vim is a 7.2.57 which I compiled maybe an hour or >> so >> ago). > > This is mine: > " Vim filetype plugin file > " Language: Perl > " Maintainer: Dan Sharp<dwsharp at hotmail dot com> > " Last Change: 2005 Dec 16 > " URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin > > > I also found this note: > > " The following line changes a global variable but is necessary to make > " gf and similar commands work. The change to iskeyword was incorrect. > " Thanks to Andrew Pimlott for pointing out the problem. If this causes a > " problem for you, add an after/ftplugin/perl.vim file that contains > " set isfname-=: > set isfname+=: > "setlocal iskeyword=48-57,_,A-Z,a-z,: > > It is the only part of the file that contains 'iskeyword' > >
Yeah, I have the same. The default value of 'iskeyword' varies between Windows and Unix but does not include the colon. Looks like some earlier versions of the ftplugin "incorrectly" added it. Best regards, Tony. -- OK, so you're a Ph.D. Just don't touch anything. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
