brew install universal-ctags
ctags ---list-kinds=all
tags filectags -R src/*
node_modulesctags --exclude=*.js --exclude=node_modules -R *
| Build tags (from shell) | ctags -R * |
| Open vim to a specific tag (from shell) | vim -t PickupsController |
| Jump to tag | ctrl+] |
| Split the window before jumping to tag | ctrl+w ctrl+] |
| Jump to next tag | :tnext or :tn |
| See all matching tags | :ts |
| Show autocomplete via ctags | ctrl+x ctrl+] |
The config file for universal ctags is different from exuberant ctags.
The location I want for universal ctags config is ~/.ctags.d/conf.ctags not ~/.ctags.
ctags --language-force=scheme myfile.rkt
tags files in gitAdd tags to ~/.gitexcludes
Edit ~/.vimrc:
"The semi-colon means "recursively search up"
set tags=./tags; to `~/.vimrc`.
Plug 'vim-scripts/taglist.vim'
" Show tags
noremap t :TlistToggle
" Reveal in taglist
nmap t :TlistHighlightTag
" Taglist settings
let Tlist_Ctags_Cmd='/usr/local/bin/ctags'
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Use_SingleClick = 1
let Tlist_GainFocus_On_ToggleOpen = 1
let Tlist_Close_On_Select = 0
let Tlist_WinWidth = 30
let Tlist_Auto_Highlight_Tag = 1