Wednesday, May 9, 2012

Re: Does "set guitablabel" require scripting? (Virtually all examples seem to imply that it does…)

On Wednesday, May 9, 2012 10:33:47 AM UTC-5, sfosparky wrote:
> Thanks to all. The good news is that I'm making progress. (And yes, it was just a typo — guitabel was guitablabel all along.)
>
> OK, per the attached PNG screenshot, I'm not sure if guitablabel=%t is working properly or not. I seem to have *reduced* the long pathname in front of the file, but filenames still include a preceding path character (V\) that I'd like to get rid of.
>
> So, is it possible to display *only* a filename in a tab? Or must one always have at least one directory/folder indicator?
>

Thanks for the screenshot, that clears things up.

You're correct, %t should only display the tail of the file name, with none of the path.

But you're not seeing a GUI tab pages line. You're seeing the non-GUI tabline. So, either you need to enable the GUI tab line with :set guioptions+=e, or you need to use the 'tabline' option to set the label instead.

Note that the default value of guioptions already includes the 'e' flag, so at some point in your config you must have removed it. See the output of:

:verbose set guioptions?

to see where you last set the option.

Your screenshot LOOKS like you're on a Windows system, which supports a GUI tab pages line, but note that :help 'guioptions' claims that only GTK, Motif, Mac OS/X, and Microsoft Windows support this if you're not on one of those systems.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: