How to automatically update tag file in vim?

后端 未结 7 654
南旧
南旧 2021-01-30 02:32

I use vim C++ tag file for navigation using Ctrl-]. The problem is whenever some file gets modified, the links are no longer valid and I have to re-run ctags and update the tag

7条回答
  •  旧巷少年郎
    2021-01-30 02:56

    From its repository: vim-gutentags is a plugin that takes care of the much needed management of tags files in Vim. It will (re)generate tag files as you work while staying completely out of your way. It will even do its best to keep those tag files out of your way too. It has no dependencies and just works.

    You can give it a try at https://github.com/ludovicchabant/vim-gutentags.

提交回复
热议问题