Last Updated: February 25, 2016
·
1.227K
· TaurusOlson

Show the current function name in the statusline

Sometimes it's handy to have the name of the current function at a glance (specially for big functions that don't fit on your whole screen.)

set statusline +=\ %{Tlist_Get_Tagname_By_Line()}

That's what this line does if you put it in your .vimrc and that you have taglist plugin installed.

(Note that the same thing is possible with tagbar by using the equivalent function.)