---
layout: default
title: Tagbar, the Vim class outline viewer
---
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.
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.
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.
Vim license
Jan Larres (jan@majutsushi.net)
You can also clone the project with Git by running:
$ git clone git://github.com/majutsushi/tagbar