Wikia

Vim Tips Wiki

Changes: Script:273

Edit

Back to page

(Format.)
 
(One intermediate revision by one user not shown)
Line 28: Line 28:
 
</pre>
 
</pre>
 
--[[User:Dominiko|Dominiko]] 05:42, 14 August 2010 (UTC)
 
--[[User:Dominiko|Dominiko]] 05:42, 14 August 2010 (UTC)
+
----
Note that this plugin adds a lot to the startup time because it does a lot of initialization when it is loaded, even if taglist is never called in the Vim session. It could easily fix this by only initializing the first time a user make use of taglist.
+
Note that this plugin adds a lot to the startup time because it does a lot of initialization when it is loaded, even if taglist is never called in the Vim session. It could easily fix this by only initializing the first time a user make use of taglist. <small>--Preceding [[Vim Tips Wiki:Quick reference|unsigned]] comment added by [[User:Brachus|Brachus]] 18:10, September 24, 2012</small>
  +
:The taglist plugin is designed to load the functions only when any of the functionality is used. Otherwise, the plugin is not loaded and will not increase the Vim startup time. Most probably, the author of the previous comment has enabled the taglist menu. To generate the menu, the taglist plugin needs to load all the functions. <small>--Preceding [[Vim Tips Wiki:Quick reference|unsigned]] comment added by [[User:Anon|Anon]] 02:29, July 22, 2013</small>

Latest revision as of 09:16, July 28, 2013

Use this page to discuss script 273 taglist: source code browser (supports C/C++, Java, Perl, Python and more)

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Using clang?Edit

Couldn't this plugin use clang for parsing C++? At the moment tag list has problems with my C++ code

--Michael.lehn 17 November 2011

CommentsEdit

I use this plugin to put the name of the current function (where cursor is located) in the statusline using:

 set statusline+=%(%{Tlist_Get_Tagname_By_Line()}%), " Function name

This generally works very well with C code. However, I see one example where it displays the wrong information:

$ cd vim/src
$ vim ex_getln.c '+/^showmatches/+20'

:echo Tlist_Get_Tagname_By_Line()

Actual result:
L_SHOWFILE

Expected result:
showmatches

--Dominiko 05:42, 14 August 2010 (UTC)


Note that this plugin adds a lot to the startup time because it does a lot of initialization when it is loaded, even if taglist is never called in the Vim session. It could easily fix this by only initializing the first time a user make use of taglist. --Preceding unsigned comment added by Brachus 18:10, September 24, 2012

The taglist plugin is designed to load the functions only when any of the functionality is used. Otherwise, the plugin is not loaded and will not increase the Vim startup time. Most probably, the author of the previous comment has enabled the taglist menu. To generate the menu, the taglist plugin needs to load all the functions. --Preceding unsigned comment added by Anon 02:29, July 22, 2013

Around Wikia's network

Random Wiki