Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These give you the power to see what kinds of methods, variables, functions, and other types of declarations you have in your files. It relies on a program called ctags being installed, and normally you have to run ctags to generate the `tags` file for the plugin to work. Luckily, there is another plugin that makes generating this tags file easy: vim-easytags. It automatically generates the tags file in the background whenever you save, so you never have to worry about the tags file getting out of date. If you're wondering why `tags` files start showing up in random places, this is it.
- Loading branch information
fd2c49c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(<-- prev step) ... (next step -->)
There are a number of plugins being installed here.
vim-misc is a dependency of vim-easytags
vim-easytags is a plugin that generates
tags
files, which is a compiled index of all the functions, variables, and identifies that you use in your project.tagbar is a plugin that reads your
tags
files and displays the information in an accessible way inside Vim.Most of everything is configured out of the box, and you can press
?
inside the tagbar buffer to learn how to use it (after opening it with\b
). For more information,fd2c49c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small correction here: Tagbar doesn't read the
tags
files, it reads the ctags output from its stdout. So it works even if there aren't anytags
files around.fd2c49c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow I founded ''vim-easytags" slow on my system. Then I tried https://github.com/szw/vim-tags and tags updates on fly and vim is responsive.
fd2c49c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a beginner, I'd like to emphasize:
So remember that you need to install ctags in your system, something like
apt-get install exuberant-ctags
.I'm also beginner, and I spent some time confused about what the error message
Tagbar: Ctags doesn't seem to be Exuberant Ctags!
means πfd2c49c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
First of all, many thanks to @jez for this GREAT & AWESOME educational work π
As Tagbar VIM plugin is now maintained by PreserVIM, this is the updated link to the repository.
Regards.