Vim auto-generate ctags

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

    I've noticed this is an old thread, however... Use incron in *nix like environments supporting inotify. It will always launch commands whenever files in a directory change. i.e.,

    /home/me/Code/c/that_program IN_DELETE,IN_CLOSE_WRITE ctags --sort=yes *.c
    

    That's it.

提交回复
热议问题