Vim auto-generate ctags

前端 未结 12 1885
醉话见心
醉话见心 2020-11-29 16:18

Right now I have the following in my .vimrc:

au BufWritePost *.c,*.cpp,*.h !ctags -R

There are a few problems with this:

12条回答
  •  清歌不尽
    2020-11-29 17:15

    Perhaps use the append argument to ctags as demonstrated by:

    http://vim.wikia.com/wiki/Autocmd_to_update_ctags_file

    I can't really vouch for this as I generally use source insight for code browsing, but use vim as an editor... go figure.

提交回复
热议问题