Friday, August 28, 2009

Re: Function name in status bar

2009/8/28 Mikalai Chaly <nchaly@gmail.com>:
>
>
> If you are using taglist plugin, there is such ability. Just open :help
> taglist.txt and search for "status line".
>
> Here is an example from taglist help file:
>
>     :set statusline=%<%f%=%([%{Tlist_Get_Tagname_By_Line()}]%)
>
> Looks pretty nice, at least in .c files.

Hmm, I extraced the taglist plugin under ~/.vim/ as per the
instructions and updated my statusline setting in ~/.vimrc so it looks
like this:

set statusline=%<%#MyGitBranch#%{GitBranchInfoString()}%*\
%f%=%([%{Tlist_Get_Tagname_By_Line()}]%)\ %h%m%r%=%-14.(%l,%c%V%)\ %P

(If this mailer wraps that line it's actually all on one line in my ~/.vimrc)

Yet I see *nothing* printed out on my statusline when editing .c
files, and I even manually:

:so ~/.vim/plugin/taglist.vim

.... just in case, but that had no effect for the statusline. I can
use other features of the taglist plugin whether I manually source it
or not, so I know it's loading up just fine.

Any ideas why I might not see the function name?

Thanks!

David

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: