set iskeyword+=-
to allow hyphens in function/variables names (as used by ctrl+]
). Handy for working with Makefiles and shell-scriptsctags
ctags -R
vim
ctags
vim
:TlistToggle
to open the taglist side-barcscope
cscope -b -q
to generate DB (from cscope.files if present)vim
:cscope show
to check DB loaded successfully:cscope find global <cWORD>