On 14/08/10 23:03, Ben Fritz wrote:
I was trying out the new feature in Vim 7.3 where you can drag-and-
drop tab pages to re-order them, and discovered quickly that it only
works when I am not using the guitabline, only when using the textual
tabline (i.e. it only has any effect to drag-n-drop when 'guioptions'
does not contain 'e').
While playing with this, I noticed colors in the tabline, which I had
not seen before when using the guitabline.
I played around a little, and convinced myself that user colors don't
work in the GUI tab line either, just in the textual tab line. Is this
the case? I tested by setting guitabline to %1*%N%0* and setting the
User1 highlight group to have a foreground and background color, and
to be bold, but there was no extra highlighting of the tab number.
I'm thinking about switching to using the textual tab line instead of
the GUI one, so that I can get drag-n-drop and user highlight groups.
Are there any additional features available on the textual tabline
that are not available in the GUI tab line?
Are there any features of the GUI tab line that are not available in
the textual tab line? I've noticed that guitabtooltip only works with
the GUI tab line but I don't really use this feature very often.
By the way...the :help should probably mention these limitations...I
saw no mention of them.
Well, 'guitablabel' defines one tab, the aspect of which is mostly
governed by your GUI interface (Windows, GTK2, Athena, MacVim,
whatever). OTOH, 'tabline' defines one full line which, like the
'statusline', uses the same font as the rest of your Vim screen, and is
under Vim's full control.
I use guioptions-=e so I need only define one function, which then works
for both Console and GUI mode. The 'tabline' option appeared a few
snapshots before the 'guitablabel' option in Vim 7.00aa, and I've never
used the latter.
I'm not really sure what the GUI tabs offer. On the text tabline I
define (via a 34-line function) all the tabs and, if more than one, an
"X" closebutton at far right. I'm not fully satisfied though: I have
recently noticed that this function gives [No Name] for a tab whose
current window is a netrw directory. Of course, this option is more
complex to use: since you have to define the whole line, you would use
at least one while (or equivalent) loop to accumulate all tabs' text in
a function-local variable which will ultimately become the return value
of the function.
Best regards,
Tony.
--
Living on Earth includes an annual free trip around the Sun.
--
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