At present, Vim labels tabs with a file name prefaced with a "path code" of the form "\P\M\M\F\R\F\R\T", where each character is the first character of a folder name on the path. Ugh!
In an effort to get rid of the path info, I tried using (without the quotation marks) ":set guitabel=%t" This has no effect.
So I went out looking for more help. But everywhere I've gone, "set guitablabel" is used within a script. Is scripting really necessary? Or is my problem that I'm formatting the ": set guitablabel" command improperly? Or?
Cheers & thanks,
Rick
SFO
I assume you mean 'guitablabel' instead of 'guitabel'. Are you using GUI Vim with GUI tabs enabled? See :help 'guitablabel' for the requirements, and also for details in setting it.
You don't NEED to write any script to use guitablabel or tabline options, it is just more powerful if you do. Nevertheless, you can achieve a simple tab label using only format strings like %N, %t, etc. See:
http://vim.wikia.com/wiki/Show_tab_number_in_your_tab_line
The comments section at the bottom contains a simple example without any scripting, even though the tip itself contains a lot of script. Also see :help setting-guitablabel, which includes this:
A simple example that puts the tab page number and the buffer name in the
label:
:set guitablabel=%N\ %f