Vim auto-generate ctags

前端 未结 12 1881
醉话见心
醉话见心 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 16:51

    In my opninion, plugin Indexer is better.

    http://www.vim.org/scripts/script.php?script_id=3221

    It can be:

    1) an add-on for project.tar.gz

    2) an independent plugin

    • background tags generation (you have not wait while ctags works)
    • multiple projects supported

提交回复
热议问题