Skip to content

Keep ctags up to date

krisleech edited this page Nov 11, 2011 · 1 revision

Ctags are used to provide auto-complete. See the README for installation instructions specific to your platform.

Running ctags -R will generate a tags file for your project.

There are two problems, firstly you need to run ctags -R every time you create/remove a method. Secondly it will not include code external to your project root such as gems.

Using guard (which you might already be using) you can automatically update your tags everytime your code changes, plus it will also index all the gems every time you run bundle install.

https://github.com/ivalkeen/guard-ctags-bundler

Note: There is no need to add set tags+=gems.tags to your vimrc as per the README, its already there.