gf in Perl does not work on Some::Package->some_function

33 views
Skip to first unread message

Tomáš Janoušek

unread,
May 4, 2012, 7:42:19 AM5/4/12
to vim...@vim.org
Hello,

it's quite common to use the syntax Some::Package->new to create new instances
in Perl, but using gf tries to open a file named Some/Package-.pm, which
fails. Hence, I suggest adding this to ftplugin/perl.vim:
setlocal isfname-=-

(Also, ftplugin/perl.vim in vim 7.3 contains a set isfname+=: instead of
setlocal. Is that ok?)

Regards,
--
Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/

Thilo Six

unread,
May 4, 2012, 1:36:26 PM5/4/12
to vim...@vim.org, Andy Lester
Hello Tomáš,


Excerpt from Tomáš Janoušek:

> Hello,
>
> it's quite common to use the syntax Some::Package->new to create new instances
> in Perl, but using gf tries to open a file named Some/Package-.pm, which
> fails. Hence, I suggest adding this to ftplugin/perl.vim:
> setlocal isfname-=-

I cc'ed Andy Lester. As he is the maintainer of that file he has to decide.

>
> (Also, ftplugin/perl.vim in vim 7.3 contains a set isfname+=: instead of
> setlocal. Is that ok?)

Yes. 'isfname' is global only.

>
> Regards,

--
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F


Thilo Six

unread,
May 5, 2012, 8:14:59 AM5/5/12
to vim...@vim.org, Andy Lester, Tomáš Janoušek
Hello Tomáš,

I forward the following mail i received from Andy:


Excerpt from Andy Lester:
> I don't have the original author on the cc:.
>
> Can you please point him to https://github.com/petdance/vim-perl/issues ?

sure ;)

>
> Thanks,
> xoa
>
> --
> Andy Lester => an...@petdance.com => www.petdance.com => AIM:petdance
Reply all
Reply to author
Forward
0 new messages