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)
- Host: GitHub
- URL: https://github.com/tomtom/ttags_vim
- Owner: tomtom
- License: gpl-3.0
- Created: 2010-04-06T17:32:01.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T19:27:32.000Z (about 9 years ago)
- Last Synced: 2025-04-18T20:49:51.790Z (about 1 year ago)
- Topics: tags, tags-selector, vim, vim-plugin
- Language: Vim script
- Homepage: http://www.vim.org/scripts/script.php?script_id=2018
- Size: 31.3 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: CHANGES.TXT
- License: LICENSE.TXT
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.