How can I display the function name in vim airline?

I am using the ctags

vim plugin so that the status bar displays the name of the current C function (= where the cursor is).

I installed the vim airline plugin today. Unusual, the C function name no longer appears in the status bar. There is plenty of room for more text. Is there a way to connect vessels ctags.vim

and airline

or some other method to show the function name somewhere in the status bar, like ctags?

I searched :help airline

for function

but didn't answer my question.

+3


source to share


1 answer


I don't know about ctags.vim

, but vim airline has support tagbar

, which is great. You only need to install it ( majutsushi / tagbar ) and then turn it on .vimrc

so the airline can show you which function you are in

let g:airline#extensions#tagbar#enabled = 1

      



Of course, in addition to this, you get all the cool features tagbar

.

+3


source







All Articles