On 12/07/06, Vigil <[EMAIL PROTECTED]> wrote:
This is perfect - thank you! One issue, though (although I suspect this is more to do with vim): it did not recognise a (locally defined) sub whose filename contained an underscore.
Check what you have set for iskeyword. On my vim: iskeyword=48-57,_,A-Z,a-z,: (silly vim insists on 48-57 for the numbers 0-9...) iskeyword determines what counts as a word for the purposes of */# and tag searching. I include : because I think that Module::Name is a single symbol. To make sure these settings only affect Perl, I put them in my ~/.vim/ftplugin/perl.vim (see http://greenokapi.net/svn/.vim/ftplugin/perl.vim ) Also... at the moment the script in the manpage doesn't have a mapping to refresh the tags file. If you defined the sub after opening the file, it won't be seen until you close and reopen. (I'll probably fix this soon, but patches welcome :-) Hope this helps, osfameron
On Mon, 10 Jul 2006, Hakim Cassimally wrote: >> On 28/05/06, Vigil <[EMAIL PROTECTED]> wrote: >> > I would just like ctags to work with perl :-/ > > ctags already works with Perl (up to a point) though the bundled > pltags.pl script is slightly better. You might also want to try my > recently released perl module Perl::Tags, which is a slightly > modernised version of that script.