How to refresh taglist in vim?
vim
Solution
I adapted my setup from the C++ code completion vim tip.
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
When needed, I press Ctrl-F12 to regenerate tags.
If you're using vim-taglist, you could add to your `.vimrc` an autocommand for the BufWritePost event to update the taglist window after every save:
autocmd BufWritePost *.cpp :TlistUpdate
Problem
When I make a change to a file, for example, add a function, how can I make the taglist automatically update the "tag list" in its windows after I save the change?