Vim auto-generate ctags

au BufWritePost *.c,*.cpp,*.h silent! !ctags -R & The downside is that you won’t have a useful tags file until it completes. As long as you’re on a *nix system it should be ok to do multiple writes before the previous ctags has completed, but you should test that. On a Windows system it won’t put … Read more

Vim and Ctags tips and tricks [closed]

Ctrl+] – go to definition Ctrl+T – Jump back from the definition. Ctrl+W Ctrl+] – Open the definition in a horizontal split Add these lines in vimrc map <C-\> :tab split<CR>:exec(“tag “.expand(“<cword>”))<CR> map <A-]> :vsp <CR>:exec(“tag “.expand(“<cword>”))<CR> Ctrl+\ – Open the definition in a new tab Alt+] – Open the definition in a vertical split … Read more