O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exuberant Ctags

Exuberant Ctags is an external utility that generates tag files. Ctags is available at the following link: http://ctags.sourceforge.net.

If you're on a Debian-flavored distribution, you can install Exuberant Ctags by running sudo apt-get install ctags.

Ctags introduces a ctags binary, which allows you to generate a tags file for your code base. Let's navigate to our project and try it out:

$ ctags -R .

This creates a tags file in the directory you're in.

You may want to set the following option in your .vimrc file: set tags=tags;  " Look for a tags file recursively in                                     " parent directories. This will make sure that Vim looks for the  tags file recursively in parent directories to allow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required