Questions tagged [tagbar]

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.

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.

35 questions
7
votes
2 answers

Getting VIM Tagbar to launch when opening certain file types

I'd like to have the tagbar VIM plugin launch when I open certain filetypes, so I added the following to my .vimrc: if has("gui_running") autocmd BufEnter *.hs nested TagbarOpen However, this isn't working as I expected. It opens a side window,…
user1002430
6
votes
2 answers

How to open or close NERDTree and Tagbar with \?

I want \ to open or close NERDTree and Tagbar, under the following conditions: Only close both if NERDTree and Tagbar are both opened Open both if NERDTree and Tagbar are closed OR if one is already opened So far, in VIMRC, I have: nmap…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
5
votes
2 answers

Can I add scope information to tags generated with `--regex-` in exuberant ctags?

Technically, I'm using Tagbar in vim to view a file's tags, but this question should apply generally to exuberant ctags, v5.8. Suppose I've got the following python file, call it foo.py: class foo: def bar(baz): print(baz) Let's run…
Christopher
  • 42,720
  • 11
  • 81
  • 99
4
votes
1 answer

Tagbar plugin works in vim but not neovim

I have the tagbar plugin working perfectly in vim but no tags are displayed in neovim. When I use TagbarDebug from within both, I can see that the ctags output is fine when run from vim, but from neovim, tagbardebug.log.ctags_out just has the…
meatballs
  • 3,917
  • 1
  • 15
  • 19
3
votes
2 answers

Systemverilog Support in tagbar plugin

can anybody help me to add systemverilog language support in tagbar vim plugin. I tried below things but its doesnt worked for me 1) Created ~/.ctags and copy code from https://github.com/shaohao/config.d/blob/master/ctags 2) mkdir ftplugin to…
vjain419
  • 243
  • 1
  • 3
  • 11
2
votes
1 answer

Vim markdown navigation with ctags: using 'tagbar' + 'markdown2ctags' with 'vim-pandoc'

All, I'd like to be able to use the Vim Tagbar plugin with markdown2ctags to navigate my markdown files. I haven't been able to automatically generate the tags file because the filetype, per :set filetype? is currently set to pandoc. That's becaue I…
Sean
  • 311
  • 1
  • 3
  • 12
2
votes
1 answer

vim tagbar and audible bell on initial tagbar toggle

I've noticed that the terminal audible bell sounds when the vim tagbar plugin first toggles on when I open a file. Subsequently toggling tagbar off and on again doesn't cause the audible bell. So, every time I open a source file, I get a bell sound;…
jefe2000
  • 406
  • 6
  • 13
2
votes
2 answers

How to disable showing visibility symbols in Tagbar for a specific filetype?

I want g:tagbar_show_visibility be set to '0' for Python files as there's no public/protected/private in Python. How can I configure Vim this way?
planetp
  • 14,248
  • 20
  • 86
  • 160
2
votes
0 answers

Customize airline tagbar extension to include current tags parent

The airline plugin has an extension which uses Tagbar to show the current function name. (I know this because of this question which I found via asking this question) This works really well and looks great. Here's airline showing me I'm editing the…
LondonRob
  • 73,083
  • 37
  • 144
  • 201
2
votes
2 answers

Vim NERDTree + tagbar not working as expected

I have just installed NERDTree and Tagbar in vim using vundle. Everything works fine when I use one plugin at a time but when I try and open one while having the other one already open causes problem. Here's a diagram of vim with NERDTree…
Jeff
  • 6,932
  • 7
  • 42
  • 72
2
votes
1 answer

Using vims tagbar plugin for latex files

I am currently trying to make vim's tagbar plugin to work with latex files on Mac OS X. This is my ~/.ctags file: --langdef=latex --langmap=latex:.tex --regex-latex=/^\\tableofcontents/TABLE OF…
maves
  • 508
  • 6
  • 13
2
votes
1 answer

TagBar plugin cannot be added using ctags

I'm trying to get the vim TagBar plugin to work with groovy language. I'm running on a Debian Linux. I've installed exhuberant-ctags. I've searched on the web and found those two…
Nicolas Appriou
  • 2,208
  • 19
  • 32
2
votes
1 answer

How to display the function name quickly?

I use ctags in my work, TagbarToggle is used to display the function name. My problem is that when search some keyword in the source code, Can the function name which contains the keyword auto highlighted more quickly? For example open()…
harris
  • 1,473
  • 1
  • 17
  • 26
2
votes
1 answer

use regex vim with tagbar to get filename of graphic in latex

I'm using vim and tagbar to write my latex files. In the latex source, the input for a graphic look like this: \includegraphics[width=0.70\textwidth]{../../figures/mechanical_diffusion/plate_hole/plate_hole_fem_elas_cd_map} I would like to get in…
Napseis
  • 833
  • 2
  • 10
  • 24
2
votes
3 answers

Can the vim tagbar display a local variable?

The image shows that global variable Class A, but the local variable can't be show in tagbar,why? I want tagbar show local variable str,m,n and how to set??
Da Lin
  • 179
  • 2
  • 9
1
2 3