On Fri, May 29, 2009 at 5:03 AM, Matthias Pitzl <[email protected]> wrote:
> Hello there!
>
> I'm playing around with the taglist plugin and I'm wondering if it is
> possible to show the perl packages also in the taglist. Either as new
> fold or in front of each variable and function shown in the taglist window.

When I do a:
ctags --list-kinds

I see:
Perl
    c  constants
    f  formats
    l  labels
    p  packages
    s  subroutines
    d  subroutine declarations [off]

Which tells me packages are displayed by default by the taglist.vim plugin.
One caveat, is I am running the current SVN version of ctags.

Anyway, if you do the same above and packages shows as:
    p  packages [off]

Then you can simply add the following to your .vimrc

let g:tlist_perl_settings =
'perl;c:constants;f:formats;l:labels;p:packages;s:subroutines;d:subroutine
declarations'

That tells the taglist plugin to turn on c,f,l,p,s,d when running
ctags.  The second part tells it what to call the fold when it creates
them.  So the text after the ":" can be anything you want.

HTH,
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to