Questions tagged [plugin-tagbar]

A class outline viewer for Vim

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Why is the order of functions in the tagbar different from the C source file?

When opening C/C++ source code in Vim, if you open the tagbar plugin, the display order of functions in the tagbar is different from the display order in the C/C++ source file. I wonder why.
Jumogehn's user avatar
  • 165
0 votes
1 answer
28 views

Can I make tagbar plugin highlighting the function my cursor is on?

I want this highlight appear on the tagbar plugin window. Can I?
Jumogehn's user avatar
  • 165
2 votes
0 answers
76 views

Vim command line bigger when tagbar is open

Vim's command line is bigger when TagBar is opened. I am using windows terminal but this happens in Command Prompt as well. What am I doing wrong? Or is there an option that I missed?
Garcia Adalberto's user avatar
1 vote
0 answers
648 views

How to fuzzy search existing methods in a file

I currently use tagbar to list all the methods in my php files. However I have to do several steps in order to navigate to a specific method in the file like so: run the keyboard shortcut to display ...
abbood's user avatar
  • 713
0 votes
2 answers
138 views

Adapt side panels to different screen resolution (aspect ratio)

How can I adopt side panel plugins (TagBar, TagList, NerdTree, etc) width to current screen aspect ratio? Using Vim with many different computers makes me a bit trouble to write one portable config ...
Dmitry's user avatar
  • 406
2 votes
0 answers
57 views

Tagbar line numberings being overwritten

I'm trying to use the Tagbar line numbers: " Show line numbers (0 = none, 1 = absolute, 2 = relative) " note: this doesn't work well and is often overwritten by rnu settings let g:...
David542's user avatar
  • 2,415
2 votes
1 answer
1k views

automatically open TagBar

I set Tagbar automatically open when a new file in vim, it is ok and fine. but if open a new file as a tab in opened vim, Tagbar would not be opened, how to tell vim to keep open Tagbar open with a ...
Hossein Vatani's user avatar
1 vote
0 answers
138 views

How to use actual window size to control vim settings?

Background: neovim with tagbar plugin installed Goal: when starting nvim, if current window size is larger than 100, open tagbar and set auto-open for new buffers. Currently I use the settings below ...
Reorx's user avatar
  • 111
3 votes
2 answers
225 views

How do I disable a a key in Tagbar

I've mapped 'L' and 'H' to change buffers in vim. I often end up hitting these keys in NERDTree and Tagbar. I'm able to use NERDTreeAddKeyMap to make NERDTree ignore keys. Tagbar only allows the use ...
Scoobie's user avatar
  • 131
2 votes
1 answer
1k views

ctags works but not for tagbar

I'm working with typescript now, and I got this in my ~/.ctags file: --langdef=typescript --langmap=typescript:.ts --regex-typescript=/^[ \t]*(export[ \t]+([a-z]+[ \t]+)?)?class[ \t]+([a-zA-Z0-9_$]+)/...
abbood's user avatar
  • 713
0 votes
2 answers
704 views

How to change gVim width when open/close vimfiler or tagbar?

I'm just new to vim script, and I want to make gVim width auto adjust when open/close vimfiler or tagbar window. Here's my not working Vim script: let g:window_raw_width = 90 let g:window_width = g:...
linrongbin's user avatar
6 votes
2 answers
267 views

Identify if a buffer is CtrlP or not

I use a autocmd to display current tag via Tabgar plugin like this: autocmd CursorHold * call TagbarCurrentTag However, after I open CtrlP with :CtrlP for a while, the Tagbar's output No current tag ...
tamlok's user avatar
  • 831
1 vote
2 answers
2k views

map a key to open Tagbar and NERDTree at the same time

I want to be editing a file like this: --------------- | | | | | DOC | | | | | | | --------------- And then press F5 and open ...
user10260's user avatar
0 votes
1 answer
651 views

How to search and jump to tag without going to window of tagbar?

I have tagbar installed and for javascript files I'm using jsctags to generate tags. It's working perfectly. I can use <Enter> in tagbar to jump to a tag. But what I want is an ex command to ...
Aaron Shen's user avatar
  • 2,509
1 vote
3 answers
4k views

Can't get Ctags working

I have a fairly small Javascript project, and when I run ctags -R it seems to generate at least some tags. I get a tags file (no extension?) in the root folder, and when I run wc -l tags it says 8214 ...
yung galbanum's user avatar
1 vote
1 answer
2k views

Navigation with Tagbar

I'm using Tagbar (with C++) and I would like to understand if and how it is possible to navigate the code as follow: Find all references of a variable or methods (where the variable or method is used/...
Kill KRT's user avatar
  • 113
7 votes
2 answers
2k views

How to view javascript tags in vim using tagbar + jsctags + tern_for_vim + ctags_exuberant?

I'm writing javascript code using vim and I really like to have outline view for the current javascript file I'm editing. I find tagbar is the popular plugin for this purpose. And on its wiki, for ...
Aaron Shen's user avatar
  • 2,509