sponsor Vim development Vim logo Vim Book Ad

ctags.vim : Display function name in the title bar.

 script karma  Rating 45/26, Downloaded by 4291  Comments, bugs, improvements  Vim wiki

created by
Alexey Marinichev
 
script type
utility
 
description
This script uses exuberant ctags to build the list of tags for the current file.  CursorHold event is then used to update titlestring.

Upon sourcing an autocommand is created with event type CursorHold.  It updates the title string using the function GetTagName.  Another autocommand of type BufEnter is created to generate tags for *.c, *.cpp and *.h files.

Function GenerateTags builds an array of tag names.

Function GetTagName takes line number argument and returns the tag name.
 
install details
Before sourcing the script do:
    let g:ctags_path='/path/to/ctags'
    let g:ctags_args='-I __declspec+'        (or whatever other additional arguments you want to pass to ctags)

:CTAGS command starts the script.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ctags.vim 1.0 2001-06-05 5.7 Alexey Marinichev Initial upload
ip used for rating: 3.133.12.172

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github