Though I'm not a Perl user, it sounds like you have ":" in your
'iskeyword' setting. This can be removed with
set iskeyword-=:
If it's getting set by the filetype detection of perl-scripts,
you may have to put that command in an "after" script to prevent
it from being overridden.
To read more, consult
:help 'iskeyword'
:help after-directory
-t
Though I'm not a Perl user, it sounds like you have ":" in your
'iskeyword' setting. This can be removed with
set iskeyword-=:
If it's getting set by the filetype detection of perl-scripts,
you may have to put that command in an "after" script to prevent
it from being overridden.
To read more, consult
:help 'iskeyword'
:help after-directory
-tim
This is part of perl.vim for vim 6 and older. When I upgraded to
version 7, it when away. Could you upgrade your version?
--
Just my 0.00000002 million dollars worth,
Shawn
The key to success is being too stupid to realize you can fail.
My version of vim is 7.1.138 I can't find a version number in perl.vim
so I don't know what version of perl-support you should use.
Here is the top of my perl.vim file:
" Vim syntax file
" Language: Perl
" Maintainer: Nick Hibma <ni...@van-laarhoven.org>
" Last Change: 2006 November 23
" Location: http://www.van-laarhoven.org/vim/syntax/perl.vim
It is actually older than I thought it was.
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).
Best regards,
Tony.
--
Rule of Creative Research:
(1) Never draw what you can copy.
(2) Never copy what you can trace.
(3) Never trace what you can cut out and paste down.
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'
I don't know, but when editing a Perl file, you can see what set isk (iskeyword):
:verbose set isk?
John
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.