tomtom / ttags_vim

Tag list browser for VIM (List, filter, preview, jump to tags)

Home Page:http://www.vim.org/scripts/script.php?script_id=2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:TTags [KIND] [TAGS_RX] [FILE_RX]
In order to match any kind/rx, use *.
E.g. TTags * * _foo.vim$

Features:
    - List tags
    - Filter tags matching a pattern
    - Jump/Preview tags
    - Insert tags (and a template for the argument list if supported by 
      tSkeleton, which has to be installed for this)


-----------------------------------------------------------------------
Install~

Edit the vba file and type: >

    :so %

See :help vimball for details. If you have difficulties or use vim 7.0, 
please make sure, you have the current version of vimball (vimscript 
#1502) installed.

This script requires tlib (vimscript #1863) to be installed.

Suggested maps (to be set in ~/.vimrc): >

    " Show available tags
    noremap <Leader>g. :TTags<cr>

    " Show current buffer's tags
    noremap <Leader>g% :call ttags#List(0, "*", "", ".")<cr>

    " Show tags matching the word under cursor
    noremap <Leader>g# :call ttags#List(0, "*", tlib#rx#Escape(expand("<cword>")))<cr>

    " Show tags with a prefix matching the word under cursor
    noremap <Leader>g* :call ttags#List(0, "*", tlib#rx#Escape(expand("<cword>")) .".*")<cr>

    " Show tags matching the word under cursor (search also in |g:tlib_tags_extra|)
    noremap <Leader>g? :call ttags#List(1, "*", tlib#rx#Escape(expand("<cword>")))<cr>

    " Show tags of a certain category
    for c in split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', '\zs')
        exec 'noremap <Leader>g'. c .' :TTags '. c .'<cr>'
    endfor

You can use :echo keys(ttags#Kinds())<cr> to find out which kinds are defined.




Dependencies:
  tlib (>= 0.21) :: http://github.com/tomtom/tlib_vim

License: GPLv3 or later
Install: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.

About

Tag list browser for VIM (List, filter, preview, jump to tags)

http://www.vim.org/scripts/script.php?script_id=2018

License:GNU General Public License v3.0


Languages

Language:Vim Script 100.0%