Vim plugin that displays tags in a window, ordered by scope
Go to file
2019-10-22 10:38:05 +03:00
autoload Merge pull request #544 from aymanbagabas/aymanbagabas/markdown 2019-10-22 10:38:05 +03:00
doc Merge pull request #502 from chocoladisco/master 2019-10-21 19:38:27 +03:00
plugin Add map to allow pausing/unpausing tagbar 2018-06-15 10:27:33 +02:00
syntax Add byte limit for look-behind pattern 2017-09-12 13:40:46 +12:00
.gitattributes Move tests into separate repository 2013-04-24 15:57:22 +12:00
.gitignore Ignore /doc/tags 2011-05-31 16:45:27 -03:00
.info Add simple info file 2011-11-25 22:48:02 +13:00
LICENSE Add LICENSE file, closes #197 2014-03-21 13:54:30 +13:00
README.md Add note about looking for maintainers 2019-10-20 16:13:36 +13:00

Looking for new maintainers

Please see https://github.com/majutsushi/tagbar/issues/549 for details.

Tagbar: a class outline viewer for Vim

What Tagbar is

Tagbar is a Vim plugin that provides an easy way to browse the tags of the
current file and get an overview of its structure. It does this by creating 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.

What Tagbar is not

Tagbar is not a general-purpose tool for managing tags files. It only
creates the tags it needs on-the-fly in-memory without creating any files.
tags file management is provided by other plugins, like for example
easytags.

Dependencies

Vim 7.3.1058
Exuberant Ctags 5.5 or
Universal Ctags (recommended), a maintained fork of
Exuberant Ctags.

Installation

Extract the archive or clone the repository into a directory in your
'runtimepath', or use a plugin manager of your choice like
pathogen. Don't forget to run
:helptags if your plugin manager doesn't do it for you so you can access the
documentation with :help tagbar.

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>

If you do this 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.

Support for additional filetypes

For filetypes that are not supported by Exuberant Ctags check out the
wiki
to see whether other projects
offer support for them and how to use them. Please add any other
projects/configurations that you find or create yourself so that others can
benefit from them, too.

Note: If the file structure display is wrong

If you notice that there are some errors in the way your file's structure is
displayed in Tagbar, please make sure that the bug is actually in Tagbar
before you report an issue. Since Tagbar uses
exuberant-ctags and compatible programs to do
the actual file parsing, it is likely that the bug is actually in the program
responsible for that filetype instead.

There is an example in :h tagbar-issues about how to run ctags manually so
you can determine where the bug actually is. If the bug is actually in ctags,
please report it on their website instead, as there is nothing I can do about
it in Tagbar. Thank you!

You can also have a look at ctags bugs that have previously been filed
against Tagbar
.

Screenshots

screenshot1
screenshot2

License

Vim license, see LICENSE

Maintainer

Jan Larres <jan@majutsushi.net>