Do not do this: brew install ctags
This is what I want: brew install universal-ctags
ctags ---list-kinds=all
ctags -R src/*
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+] |
Also:
- Add ‘tags’ to .gitexcludes
- Add set tags=./tags;
to ~/.vimrc
. The
semi-colon means “recursively search up”
ctags --language-force=scheme myfile.rkt