Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

taglist · Vim taglist (source browser) plugin

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 366 - 395 of 487   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#366 From: "forkinpm" <forkinpm@...>
Date: Fri Dec 21, 2007 4:37 pm
Subject: VIM and the ability to tag files
forkinpm
Send Email Send Email
 
Hallo!

I am not an IT professional but a user interested in having the
ability to tag text files with attributes such as keyords from the
text content. If this is possible with VIM or with a plugin to VIM,
then I would like also to be able to put text objects into categories.

For any help on if and how it can be done, I would be very grateful.

Perhaps someone might be able to recommend a site for a comprehensive
VIM tutorial and also a good book on an introduction to VIM.

Thanks again for any help.

Regards, forkinpm.

#367 From: "forkinpm" <forkinpm@...>
Date: Fri Dec 21, 2007 4:42 pm
Subject: using VIM as an outliner and using folding for text content and not code content
forkinpm
Send Email Send Email
 
Hallo"

Having just posted a message 'cry for help' on using VIM for tagging
files here is another request for advice.

I want to use VIm as an outliner with the ability to fold text objects
and not just code sections. I then wish to export the objects to HTML
and have the folded content also visible in terms of folds in HTML.

Is this feasible or just illusory?

Thanks for an wise responses, Regards, forkinpm.

#368 From: "Suresh Govindachar" <sgovindachar@...>
Date: Sat Dec 22, 2007 4:48 am
Subject: RE: using VIM as an outliner and using folding for text content and not code content
sgovindachar
Send Email Send Email
 
It is possible to do what you are asking for.
   Join the vim user mailing list
   http://www.vim.org/maillist.php#vim
   and ask both your questions there.

   --Suresh

#369 From: "capoeirajiujitsu" <quesadaj@...>
Date: Thu Jan 3, 2008 1:27 am
Subject: support for autohotkey added to ctags. I need taglist to call ctags -R. How?
capoeirajiuj...
Send Email Send Email
 
Hi,

First, congrats, taglist is quite a plugin.
It makes my life a lot more enjoyable.

I struggled to get ctags support for autohotkey (see http://
www.autohotkey.com/forum/viewtopic.php?t=27176&highlight=ctags)
Now it works! But I'm not sure about the recursive part.

I have gotten multiple function lists for #include'd files, but I
think I got it by running the command line version of ctags
myself, not through taglist.

Is there any way I can tell taglist to use -R? I think it does
that by default in other languages.

Thanks

#370 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Jan 3, 2008 3:06 am
Subject: Re: VIM and the ability to tag files
yegappan
Send Email Send Email
 
Hi,

>
> Hallo!
>
> I am not an IT professional but a user interested in having the
> ability to tag text files with attributes such as keyords from the
> text content. If this is possible with VIM or with a plugin to VIM,
> then I would like also to be able to put text objects into categories.
>

You can extend exuberant ctags with regular expressions to generate
tags for text files. For more information about this, refer to

     http://ctags.sourceforge.net/EXTENDING.html
     http://vim-taglist.sourceforge.net/extend.html

>
> For any help on if and how it can be done, I would be very grateful.
>
> Perhaps someone might be able to recommend a site for a comprehensive
> VIM tutorial and also a good book on an introduction to VIM.
>

You can refer to the user manual shipped with Vim for a good
introduction to Vim.

     http://vimdoc.sourceforge.net/

You can also refer to the books listed in the following page:

     http://iccf-holland.org/click5.html

The following book explains features available upto Vim 6.0:

http://www.amazon.com/exec/obidos/ASIN/0735710015/stichtingiccfhol

- Yegappan




      
________________________________________________________________________________\
____
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#371 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Jan 3, 2008 3:09 am
Subject: Re: using VIM as an outliner and using folding for text content and not code content
yegappan
Send Email Send Email
 
Hi,

>
> Hallo
>
> Having just posted a message 'cry for help' on using VIM for tagging
> files here is another request for advice.
>
> I want to use VIm as an outliner with the ability to fold text objects
> and not just code sections. I then wish to export the objects to HTML
> and have the folded content also visible in terms of folds in HTML.
>
> Is this feasible or just illusory?
>

You can try using the following Vim plugin:

     http://www.vimoutliner.org/

- Yegappan




      
________________________________________________________________________________\
____
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

#372 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Jan 3, 2008 3:14 am
Subject: Re: support for autohotkey added to ctags. I need taglist to call ctags -R. How?
yegappan
Send Email Send Email
 
Hello,

>
> Hi,
>
> First, congrats, taglist is quite a plugin.
> It makes my life a lot more enjoyable.
>
> I struggled to get ctags support for autohotkey (see http://
> www.autohotkey. com/forum/ viewtopic. php?t=27176& highlight= ctags)
> Now it works! But I'm not sure about the recursive part.
>
> I have gotten multiple function lists for #include'd files, but I
> think I got it by running the command line version of ctags
> myself, not through taglist.
>
> Is there any way I can tell taglist to use -R? I think it does
> that by default in other languages.
>

The taglist plugin doesn't pass the "-R" flag to exuberant
ctags. It invokes ctags separately for each file.

You can use the ":TlistAddFilesRecursive" command to add files
present in multiple directories recursively to the taglist.

- Yegappan




      
________________________________________________________________________________\
____
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#373 From: "jyx_bech" <jyx_bech@...>
Date: Fri Jan 11, 2008 10:01 pm
Subject: taglist + multiple tabs gives error messages
jyx_bech
Send Email Send Email
 
Hi,

I have noticed a problem when using taglist and tabs, which I want to report. Try the following

  1. Open any file, a.c
  2. :TlistToggle
  3. :tabnew b.c
  4. :TlistToggle
  5. gt

You get something like this:
Error detected while processing function <SNR>22_Tlist_Refresh_Folds:
line 24:
E16: Invalid range: 4,10fold


It seems like this happens when
1) You wrap around from the right most tab to the first tab
and ...
2) When you move backwards, i.e by pressing gT
however the problem isn't really consistent.

/BR J

#374 From: "lorenzo_bolognini" <lbolognini@...>
Date: Tue Jan 29, 2008 9:34 am
Subject: Open automatically with some file types
lorenzo_bolo...
Send Email Send Email
 
Hi all,

can taglist be made to open automatically with some file types?

Thanks,
Lorenzo

#375 From: "David Lyons" <trippyd@...>
Date: Fri Feb 1, 2008 5:57 pm
Subject: Reorder the window
ogpickle
Send Email Send Email
 
I was wondering if there was a way to re-order the left hand window so
that the variable list is at the bottom, it is the least useful (to
me) portion of the plugin, so I would like to get it more out of the way.

Thanks!

#376 From: Yegappan Lakshmanan <yegappan@...>
Date: Fri Feb 1, 2008 7:52 pm
Subject: Re: Reorder the window
yegappan
Send Email Send Email
 
----- Original Message ----

From: David Lyons <trippyd@...>

To: taglist@yahoogroups.com

Sent: Friday, February 1, 2008 9:57:28 AM

Subject: [taglist] Reorder the window



                                I was wondering if there was a way to re-order
the left hand window so

  that the variable list is at the bottom, it is the least useful (to

  me) portion of the plugin, so I would like to get it more out of the way.



  Thanks!




Hi,

>
> I was wondering if there was a way to re-order the left hand window so
> that the variable list is at the bottom, it is the least useful (to
> me) portion of the plugin, so I would like to get it more out of the
> way.
>

You can configure the taglist plugin to display only the selected
tag types in the taglist window. For example, if you are interested
in seeing only the functions, you can configure the taglist plugin
to do so.

To do this, you have to set the tlist_<x>_settings variable in your
.vimrc file. Replace <x> with the filetype for the desired language.
For example, to display only the functions defined in a C file,
set the following variable:

     let tlist_c_settings = 'c;f:function'

For more information about this variable and the format of the
value you can set in this variable, refer to

     http://vim-taglist.sourceforge.net/extend.html

- Yegappan







      
________________________________________________________________________________\
____
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#377 From: "David Lyons" <trippyd@...>
Date: Fri Feb 1, 2008 10:18 pm
Subject: Re: Reorder the window
ogpickle
Send Email Send Email
 
Perfect, that was exactly what I was looking for, actually, you can
use this to reorder as well as delete:

let tlist_php_settings = 'php;c:class;f:function;d:constant;v:variable'

moves the constants and variables below the functions.

--- In taglist@yahoogroups.com, Yegappan Lakshmanan <yegappan@...> wrote:
>
>     let tlist_c_settings = 'c;f:function'
>

#378 From: "Enrico Rossi" <escargot.oink@...>
Date: Sat Feb 2, 2008 3:41 am
Subject: Using taglist with R language
escargot.oink
Send Email Send Email
 
Hello!

I'm fairly new to vim, just started using it via the MacVim GUI. I'm
trying to get the taglist plugin to work with the R language. Hope you
can help me out!

Since you might not be familiar with R, here's a little code snippet,
I'm sure you can tell what it does:

firstfun<-function(){
     print("hello")
}
secondfun<-function(){
     print("world!")
}
firstfun()
secondfun()

So, here's what I've done so far:

1. Installed exuberant ctags for Mac via Fink, and installed the
taglist plugin into the ~/.vim directory

2. Created a ctags language definition for R in ~/.ctags :
--langdef=r
--langmap=r:.r
--regex-r=/^[ \t]*([a-zA-z\._]*)[ \t]*(<-|=)\s*function/\1/f,function/

3. Put the snippet above in a file called test.r, and ran "ctags
test.r", which produced a file called tags with these contents:
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to
lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@.../
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.5.4 //
firstfun test.r /^firstfun<-function(){$/;" f
secondfun test.r /^secondfun<-function(){$/;" f

4. Added a line to the language definition section in the taglist.vim
file:
   let s:tlist_def_r_settings = 'r;f:function'

5. Started vim (either in the terminal or through the GUI) in the
directory where test.r is located, and ran the :TlistToggle command.
The window appears on the left side, with a section for the test.r
file, but the two tags for firstfun and secondfun don't show up.

Am I doing something wrong?

Thanks,
Enrico

#379 From: "Enrico Rossi" <escargot.oink@...>
Date: Sat Feb 2, 2008 4:52 am
Subject: Re: Using taglist with R language
escargot.oink
Send Email Send Email
 
Ah, I just figured it out. It turns out that vim uses the type of
comments to distinguish r from rexx files. Since the sample snippet
didn't have any comments, vim thought it was rexx, and the filetype
wasn't set properly, even though it had been for other r files I tried.
It works fine now. Thanks for making this great plugin!

Enrico

--- In taglist@yahoogroups.com, "Enrico Rossi" <escargot.oink@...> wrote:
>
> Hello!
>
> I'm fairly new to vim, just started using it via the MacVim GUI. I'm
> trying to get the taglist plugin to work with the R language. Hope you
> can help me out!
>
> Since you might not be familiar with R, here's a little code snippet,
> I'm sure you can tell what it does:
>
> firstfun<-function(){
>     print("hello")
> }
> secondfun<-function(){
>     print("world!")
> }
> firstfun()
> secondfun()
>
> So, here's what I've done so far:
>
> 1. Installed exuberant ctags for Mac via Fink, and installed the
> taglist plugin into the ~/.vim directory
>
> 2. Created a ctags language definition for R in ~/.ctags :
> --langdef=r
> --langmap=r:.r
> --regex-r=/^[ \t]*([a-zA-z\._]*)[ \t]*(<-|=)\s*function/\1/f,function/
>
> 3. Put the snippet above in a file called test.r, and ran "ctags
> test.r", which produced a file called tags with these contents:
> !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to
> lines/
> !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
> !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@.../
> !_TAG_PROGRAM_NAME Exuberant Ctags //
> !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
> !_TAG_PROGRAM_VERSION 5.5.4 //
> firstfun test.r /^firstfun<-function(){$/;" f
> secondfun test.r /^secondfun<-function(){$/;" f
>
> 4. Added a line to the language definition section in the taglist.vim
> file:
>   let s:tlist_def_r_settings = 'r;f:function'
>
> 5. Started vim (either in the terminal or through the GUI) in the
> directory where test.r is located, and ran the :TlistToggle command.
> The window appears on the left side, with a section for the test.r
> file, but the two tags for firstfun and secondfun don't show up.
>
> Am I doing something wrong?
>
> Thanks,
> Enrico
>

#380 From: tdthp@...
Date: Sun Feb 3, 2008 6:15 am
Subject: empty tags file
kavelot
Send Email Send Email
 
hello

I installed taglist on windows VIM
everything seems fine, I can see the tag window with
variables/function nice... except that Ctrl-] doesn't work
also, the "tags" file that is created is empty

any hints?

#381 From: "cazzerson" <casden@...>
Date: Thu Feb 14, 2008 2:38 pm
Subject: ignore PHP comments
cazzerson
Send Email Send Email
 
Hello,

I just started using taglist 4.5 with MacVim while working in PHP, and
it is working great. One strange issue is that it doesn't seem to be
skipping commented lines. As a result, lines like these:

     // The public start function which runs the whole thing

     // There will be a separate class for this eventually

cause "which" to show up as a function and "for" to show up as a class
in the taglist. I'd appreciate any help anyone could offer.

Thanks,
Jason

#382 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Feb 14, 2008 6:33 pm
Subject: Re: ignore PHP comments
yegappan
Send Email Send Email
 
Hello,

>
> Hello,
>
> I just started using taglist 4.5 with MacVim while working in PHP, and
> it is working great. One strange issue is that it doesn't seem to be
> skipping commented lines. As a result, lines like these:
>
> // The public start function which runs the whole thing
>
> // There will be a separate class for this eventually
>
> cause "which" to show up as a function and "for" to show up as a class
> in the taglist. I'd appreciate any help anyone could offer.
>

Which version of exuberant ctags are you using? The taglist plugin relies
on exuberant ctags to correctly parse the file and generate the list of
tags defined in that file.

From your description, it looks like a bug in the PHP language parser
in exuberant ctags. You can try sending an e-mail to the exuberant ctags
user mailing list about this problem.

https://lists.sourceforge.net/lists/listinfo/ctags-users
http://ctags.sourceforge.net/

- Yegappan



Looking for last minute shopping deals? Find them fast with Yahoo! Search.

#383 From: "cazzerson" <casden@...>
Date: Thu Feb 14, 2008 7:21 pm
Subject: Re: ignore PHP comments
cazzerson
Send Email Send Email
 
Hi,

I am using exuberant Ctags 5.7, which looks like the newest version.
I'll see what they have to say on the ctags list...

Thanks,
Jason

--- In taglist@yahoogroups.com, Yegappan Lakshmanan <yegappan@...> wrote:
>
> Hello,
>
> >
> > Hello,
> >
> > I just started using taglist 4.5 with MacVim while working in PHP, and
> > it is working great. One strange issue is that it doesn't seem to be
> > skipping commented lines. As a result, lines like these:
> >
> > // The public start function which runs the whole thing
> >
> > // There will be a separate class for this eventually
> >
> > cause "which" to show up as a function and "for" to show up as a class
> > in the taglist. I'd appreciate any help anyone could offer.
> >
>
> Which version of exuberant ctags are you using? The taglist plugin
relies
> on exuberant ctags to correctly parse the file and generate the list of
> tags defined in that file.
>
> From your description, it looks like a bug in the PHP language parser
> in exuberant ctags. You can try sending an e-mail to the exuberant ctags
> user mailing list about this problem.
>
> https://lists.sourceforge.net/lists/listinfo/ctags-users
> http://ctags.sourceforge.net/
>
> - Yegappan
>
>
>
>
>
>
________________________________________________________________________________\
____
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>

#384 From: "nevikintx" <nevikintx@...>
Date: Mon Mar 10, 2008 10:08 pm
Subject: tagsList only works on lines without a control-M
nevikintx
Send Email Send Email
 
we have a mixed group of developers.  some use windows and some use
linux.  i am a linux user.  i downloaded latest vim and the taglist
code today.  i have verified exhuberant ctags as..:
Exuberant Ctags 5.5.4, Copyright (C) 1996-2003 Darren Hiebert
   Compiled: Feb 18 2005, 03:22:03
   Addresses: <dhiebert@...>,
http://ctags.sourceforge.net
   Optional compiled features: +wildcards, +regex

the TlistToggle appears to parse the contents of the file correctly
(.asm), pops up the split window OK.  i have noticed that it will only
change the to the proper source line if and only if that line does NOT
have a control M (^M).

after i have done the global substition (:s/^V^M//g), all of the tags
now work as expected.

any ideas on how to fix this??

as soon as i change the file to remove the control M , another windows
user will put them back in.

#385 From: Kevin T <nevikintx@...>
Date: Tue Mar 11, 2008 5:55 pm
Subject: Re: tagsList only works on lines without a control-M
nevikintx
Send Email Send Email
 
i have found that if i execute the commands, which are located at line 3270+ of the taglist.vim file,

silent call search(a:tagpat, 'w'), this is the original line

silent call search("some text", 'w')
normal! z.

vim finds the "some text" and the normal! z. moves the text to the center of the window. regardless of the existance of the control M.

i don't know enough of the vim scripting language to know what "a:tagpat" does to determine what search will do with the return value of a:tagpat.


----- Original Message ----
From: nevikintx <nevikintx@...>
To: taglist@yahoogroups.com
Sent: Monday, March 10, 2008 5:08:50 PM
Subject: [taglist] tagsList only works on lines without a control-M

we have a mixed group of developers. some use windows and some use
linux. i am a linux user. i downloaded latest vim and the taglist
code today. i have verified exhuberant ctags as..:
Exuberant Ctags 5.5.4, Copyright (C) 1996-2003 Darren Hiebert
Compiled: Feb 18 2005, 03:22:03
Addresses: <dhiebert@users. sourceforge. net>,
http://ctags. sourceforge. net
Optional compiled features: +wildcards, +regex

the TlistToggle appears to parse the contents of the file correctly
(.asm), pops up the split window OK. i have noticed that it will only
change the to the proper source line if and only if that line does NOT
have a control M (^M).

after i have done the global substition (:s/^V^M//g) , all of the tags
now work as expected.

any ideas on how to fix this??

as soon as i change the file to remove the control M , another windows
user will put them back in.




Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

#386 From: "didier_bretin" <didier@...>
Date: Sun Mar 23, 2008 5:13 pm
Subject: jump to definition of the variable
didier_bretin
Send Email Send Email
 
Hi,

I would like to know if there is a possibility to jump to the
definition of a variable when I am in a java function ? For
example I'm here:
   msg = "do it";

When I move the cursor on "msg" I would like to be able to jump
to its definition which is above the current line. I need to specify
that I'm in java.

Regards.
--
Didier Bretin
http://bretin.net/

#387 From: "benztirf" <fritzophrenic@...>
Date: Mon Apr 14, 2008 5:50 pm
Subject: Problem with Tlist_Window_Exit_Only_Window
benztirf
Send Email Send Email
 
I use the Tlist_Exit_OnlyWindow option to exit Vim when the taglist is
the only open window.

I use my own autocmd to call TListOpen whenever certain filetypes are
loaded, and then switches back to the file being opened. I don't
remember exactly why, but I'm using the BufWinEnter event to do this
(I remember fooling around with BufWinEnter, FileType, BufRead, etc.
events, and for whatever reason this is the one I settled on).

The autocmd used to implement the Tlist_Exit_OnlyWindow option is
specified as a "nested" autocmd (for good reason, I imagine...possibly
so that VimLeave commands, etc. will fire?)

The function used to implement the option calls bdelete

bdelete will, when the buffer in the current window is deleted, load
another loaded buffer into the window.

If the loaded buffer is a file for which my autocmd fires, the TagList
gets opened again.

The function to implement the close option then calls quit, which
closes the just-opened buffer.

The taglist is again the last window open, therefore the process
repeats. Oh noes!

Granted, there may be a better event for me to use in my own autocmd,
but the underlying problem is going to be there for anybody. I think
it would be a good idea for you to set the eventignore option to
include appropriate events right before the bdelete in the
Tlist_Window_Exit_Only_Window function.

I was able to temporarily fix this problem by wrapping the following
around the bdelete calls:

let l:oldei=&eventignore
set eventignore+=BufEnter
set eventignore+=BufWinEnter
bdelete
let &eventignore=l:oldei

#388 From: "benztirf" <fritzophrenic@...>
Date: Fri May 9, 2008 3:42 pm
Subject: Bug: doesn't restore 'cpoptions'
benztirf
Send Email Send Email
 
On line 329, there is the following code:

if !exists('s:tlist_sid')
     " Two or more versions of taglist plugin are installed. Don't
     " load this version of the plugin.
     finish
endif

It should be:

if !exists('s:tlist_sid')
     " Two or more versions of taglist plugin are installed. Don't
     " load this version of the plugin.
     let &cpo = s:cpo_save
     finish
endif

#389 From: Yegappan Lakshmanan <yegappan@...>
Date: Fri May 9, 2008 10:43 pm
Subject: Re: Bug: doesn't restore 'cpoptions'
yegappan
Send Email Send Email
 
Hi,

>
> On line 329, there is the following code:
>
> if !exists('s:tlist_ sid')
> " Two or more versions of taglist plugin are installed. Don't
> " load this version of the plugin.
> finish
> endif
>
> It should be:
>
> if !exists('s:tlist_ sid')
> " Two or more versions of taglist plugin are installed. Don't
> " load this version of the plugin.
> let &cpo = s:cpo_save
> finish
> endif
>

Thanks for reporting this problem and the patch. I will make this change
in the next version of the taglist plugin.

- Yegappan



      
________________________________________________________________________________\
____
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#390 From: "rrrith" <rrrith@...>
Date: Sat Jul 5, 2008 6:34 pm
Subject: turn off the vertical highlighted column
rrrith
Send Email Send Email
 
is there anyway I can turn off the 2 vertical highlighted column on
the right side of the taglist window?

#391 From: "Robert Mark Bram" <robertmarkbram@...>
Date: Sun Aug 10, 2008 6:19 am
Subject: Taglist for Vim and xml files
robertmarkbram
Send Email Send Email
 
Hi All,

I am using Cygwin on Win XP, trying to use TagList with VIM.

Taglist isn't working for me in vim - when I issue :TlistToggle, all I
see in the new split is:

   " Press <F1> to display help
- file name with the full path..

I have tried this on xml and html files and get the same thing.

I have installed exuberant ctags:
-bash3.2 > ctags --version
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
   Compiled: Sep  4 2007, 23:24:26
   Addresses: <dhiebert@...>,
http://ctags.sourceforge.net
   Optional compiled features: +win32, +regex, +internal-sort

I have the taglist.txt and taglist.vim in place:
-bash3.2 > ls ~/.vim/doc
EnhancedCommentify.txt  taglist.txt  tags
-bash3.2 > ls ~/.vim/plugin/
EnhancedCommentify.vim  closetag.vim  repmo.vim  taglist.vim

I want to use this for Ant xml files, so I have my .ctags file in place.

-bash3.2 > cat ~/.ctags
--langdef=ant
--langmap=ant:.xml
--regex-ant=/^[ \t]*<[ \t]*project.*name="([a-zA-Z0-9
]+)".*>/\1/p,project/i
--regex-ant=/^[ \t]*<[ \t]*target.*name="([a-zA-Z0-9 ]+)".*>/\1/t,target/i
--regex-ant=/^[ \t]*<[ \t]*property.*name="([-.a-zA-Z0-9
]+)".*>/\1/r,property/i
--regex-ant=/^[ \t]*<[ \t]*project.*name="([^<"&]+)".*>/\1/p,project/i
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)".*>/\1/t,target/i
--regex-ant=/^[ \t]*<[ \t]*property.*name="([^<"&]+)".*>/\1/r,property/i

Any help would be most appreciated!

Rob
:)

#392 From: "trindade.joao" <trindade.joao@...>
Date: Fri Aug 15, 2008 11:01 pm
Subject: Multiple FileTypes
trindade.joao
Send Email Send Email
 
Hi,

First of all, I apologize if the question is repeated. I've searched
in the mailing list and haven't found any post relating to this issue.

I can't correctly use taglist if the filetype variable is set multiple
filetypes.

In my case my python files have two filetypes:

:set filetype
filetype=python.django

I'm using the "dot" to separate the filetypes as is explained in the
vim manual:

"
 	 When a dot appears in the value then this separates two filetype
	 names.  Example:
		 /* vim: set filetype=c.doxygen : */ ~
"

If I change the filetype only to python, everything works ok.

Is there anyway to correct this (without changing the filetype)? I've
tried to extend taglist to recognize a new language (python.django)
but the dot isn't legal in the variable:

      tlist_python.django_settings = "......."

Any other suggestion?

Thanks for the attention and thanks for the great work done with taglist!

#393 From: "Benoit PIERRE" <benoit.pierre@...>
Date: Wed Aug 27, 2008 7:55 pm
Subject: Re: taglist + multiple tabs gives error messages
benoit_pierr...
Send Email Send Email
 
--- In taglist@yahoogroups.com, "jyx_bech" <jyx_bech@...> wrote:
>
> Hi,
>
> I have noticed a problem when using taglist and tabs, which I want to
> report. Try the following
>
>
>     1. Open any file, a.c
>     2. :TlistToggle
>     3. :tabnew b.c
>     4. :TlistToggle
>     5. gt
>
> You get something like this:
> Error detected while processing function <SNR>22_Tlist_Refresh_Folds:
> line 24:
> E16: Invalid range: 4,10fold
>
>
> It seems like this happens when
> 1) You wrap around from the right most tab to the first tab
> and ...
> 2) When you move backwards, i.e by pressing gT
> however the problem isn't really consistent.

I believe this only happen if:
- g:Tlist_Show_One_File is set
- switching from a buffer with more tags (more lines in the taglist
window) than the new displayed buffer

I have fixed it by applying the following patch to the latest version
(4.5):

--- plugin/taglist.vim  2008-08-13 19:04:48 +0000
+++ plugin/taglist.vim  2008-08-27 19:24:49 +0000
@@ -4097,6 +4097,12 @@
  " window. Used after entering a tab. If this is not done, then the folds
  " are not properly created for taglist windows displayed in multiple
tabs.
  function! s:Tlist_Refresh_Folds()
+
+    " Not needed when one file is displayed.
+    if g:Tlist_Show_One_File
+      return
+    endif
+
      let winnum = bufwinnr(g:TagList_title)
      if winnum == -1
          return

#394 From: "bazooka747" <bazooka747@...>
Date: Wed Sep 10, 2008 11:20 pm
Subject: Tlist_Max_Submenu_Items - feature not working?
bazooka747
Send Email Send Email
 
I have set this to a low value (lower than the default 20) and it
seems to make no difference. I am expecting to see the sublist of
variables, for example, to be somehow truncated with an option to view
the rest.

Also, I have done some counting, and there are more than the default
20 of variables etc. that appear.

Is it just me, or is this feature somehow borked? I've read the plugin
code (but admit I don't really know it) and I could see how some
looping errors could occcur.

Anyone else with this problem?

To test it, all you should have to to is put a line like this in your
.vimrc and you should notice changes right away.

let g:Tlist_Max_Submenu_Items = 15


Thanks,
--B747

#395 From: Yegappan Lakshmanan <yegappan@...>
Date: Thu Sep 11, 2008 6:09 pm
Subject: Re: Tlist_Max_Submenu_Items - feature not working?
yegappan
Send Email Send Email
 
Hello,

>
> I have set this to a low value (lower than the default 20) and it
> seems to make no difference. I am expecting to see the sublist of
> variables, for example, to be somehow truncated with an option to view
> the rest.
>
> Also, I have done some counting, and there are more than the default
> 20 of variables etc. that appear.
>

Which version of the taglist plugin are you using? I am not able
to reproduce this problem with the latest taglist plugin.
The taglist plugin menu displays only Tlist_Max_Submenu_Items items
in the sub-menus for each tag type.

Note that if there are 20 variable defined in a program and you
have set Tlist_Max_Submenu_Items to 5, then you will see four
sub-menus with 5 tags each for the 'Variable' tag type.

>
> Is it just me, or is this feature somehow borked? I've read the plugin
> code (but admit I don't really know it) and I could see how some
> looping errors could occcur.
>

Can you elaborate on the looping errors that you found?

- Yegappan

>
> Anyone else with this problem?
>
> To test it, all you should have to to is put a line like this in your
> .vimrc and you should notice changes right away.
>
> let g:Tlist_Max_Submenu_Items = 15
>
> Thanks,
> --B747
>



Messages 366 - 395 of 487   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help