Vim auto-generate ctags

前端 未结 12 1878
醉话见心
醉话见心 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:03

    Auto Tag is a vim plugin that updates existing tag files on save.

    I've been using it for years without problems, with the exception that it enforces a maximum size on the tags files. Unless you have a really large set of code all indexed in the same tags file, you shouldn't hit that limit, though.

    Note that Auto Tag requires Python support in vim.

提交回复
热议问题