An open API service indexing awesome lists of open source software.

https://github.com/tomtom/ttags_vim

Tag list browser for VIM (List, filter, preview, jump to tags)
https://github.com/tomtom/ttags_vim

tags tags-selector vim vim-plugin

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

: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 g. :TTags

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

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

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

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

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

You can use :echo keys(ttags#Kinds()) 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.