it's a feature that really misses;
it would be great to have it in graphical native mode in gVim,
whithout having to add this layer of settings.
Too bad.

Anyway thank you all for replying to me.


2011/3/16 Christian Brabandt <[email protected]>:
> On Wed, March 16, 2011 9:43 am, Eddine wrote:
>>> :help 'tabline' and :help 'guitablabel' and follow the links.
>>> Somewhere in there is a setting to add a close button on each tab (in
>>> a position you specify).
>>
>> I know those pages, but not sure a graphical closing cross sign is
>> implemented.
>>
>> Thank you for your help
>
> Looks like this is only possible for the text mode tabs. I.e.
> you need to include the %X item. I use this setting in text mode
> (I think I got it from this list):
>
> function! MyTabLine()
>  let s = ''
>  for i in range(tabpagenr('$'))
>    " select the highlighting
>    if i + 1 == tabpagenr()
>      let s .= '%#TabLineSel#'
>    else
>      let s .= '%#TabLine#'
>    endif
>    " set the tab page number (for mouse clicks)
>    let s .= '%' . (i + 1) . 'T'
>    " the label is made by MyTabLabel()
>    let s .= ' %{MyTabLabel(' . (i + 1) . ')} '
>  endfor
>  " after the last tab fill with TabLineFill and reset tab page nr
>  let s .= '%#TabLineFill#%T'
>  " right-align the label to close the current tab page
>  if tabpagenr('$') > 1
>    let s .= '%=%#TabLine#%999Xclose'
>  endif
>  return s
> endfunction
>
> function! MyTabLabel(n)
>    let buflist = tabpagebuflist(a:n)
>    let winnr = tabpagewinnr(a:n)
>    return bufname(buflist[winnr - 1])
> endfunction
>
> regards,
> Christian
>
> --
> 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
>

-- 
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

Reply via email to