Bug#761801: /usr/share/vim/vim74/ftplugin/perl.vim: isfname erroneously set to include ":"

Philipp Marek philipp.marek at linbit.com
Wed Sep 17 05:50:19 UTC 2014


> >     " 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+=:
> >     set iskeyword+=:
> > 
> > But that is incorrect - including ":" in "isfname" breaks "gF".
> 
> The reasoning behind this change is exactly to allow gf and friends to
> work on Perl package names, which are of the form Foo::Bar.
Oh, right. That's a good reason.

But how about setting that buffer-local, so that "gF" at least works in 
other, independently opened data files?

Most compiler error/warning outputs are of this format, for example...


And the "iskeyword" line can be removed, as per the comment above, right?



More information about the pkg-vim-maintainers mailing list