brew install universal-ctags
ctags ---list-kinds=all
tags
filectags -R src/*
node_modules
ctags --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+] |
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 noremapt :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