--- layout: default title: Tagbar, the Vim class outline viewer --- Fork me on GitHub

Tagbar by Jan Larres

Vim plugin that displays tags in a window, ordered by class etc.

Tagbar is a vim plugin for browsing the tags of source code files. It provides a sidebar that displays the ctags-generated tags of the current file, ordered by their scope. This means that for example methods in C++ are displayed under the class they are defined in.

Dependencies

Vim 7.0
Exuberant ctags 5.5

Install

Extract the archive or clone the repository into a directory in your 'runtimepath' or use pathogen. Don't forget to run :helptags if you don't use pathogen.

If the ctags executable is not installed in one of the directories in your $PATH environment variable you have to set the g:tagbar_ctags_bin variable, see the documentation for more info.

Quickstart

Put something like the following into your ~/.vimrc:

nmap <F8> :TagbarToggle<CR>
Then the F8 key will toggle the Tagbar window. You can of course use any shortcut you want. For more flexible ways to open and close the window (and the rest of the functionality) see the documentation.

Screenshots

License

Vim license

Authors

Jan Larres (jan@majutsushi.net)

Download

Stable releases

{% for post in site.posts %} {{ post.title }} ({{ post.date | date:"%Y-%m-%d" }}) zip tar {{ post.content }} {% endfor %}

Latest source

Download as: zip tar

You can also clone the project with Git by running:

$ git clone git://github.com/majutsushi/tagbar