On 12/02/09 12:54, Roberto Miura Honji wrote:
> Try look in help setting-tabline.
> With this, you can have so much type of configuration for your tab label.

In Console Vim, or in gvim with the "e" flag not present in 
'guioptions', you can define a custom 'tabline' which must take care of 
all tabs, not just the current one. There's an example of custom tabline 
at |setting-tabline|, here's another one:

if exists("+showtabline")
     function MyTabLine()
         let s = ''
         let t = tabpagenr()
         let i = 1
         while i <= tabpagenr('$')
             let buflist = tabpagebuflist(i)
             let winnr = tabpagewinnr(i)
             let s .= '%' . i . 'T'
             let s .= (i == t ? '%1*' : '%2*')
             let s .= ' '
             let s .= i . ':'
             let s .= winnr . '/' . tabpagewinnr(i,'$')
             let s .= ' %*'
             let s .= (i == t ? '%#TabLineSel#' : '%#TabLine#')
             let file = bufname(buflist[winnr - 1])
             let file = fnamemodify(file, ':p:t')
             if file == ''
                 let file = '[No Name]'
             endif
             let s .= file
             let i = i + 1
         endwhile
         let s .= '%T%#TabLineFill#%='
         let s .= (tabpagenr('$') > 1 ? '%999XX' : 'X')
         return s
     endfunction
     set stal=2
     set tabline=%!MyTabLine()
     map     <F10>    :tabnext<CR>
     map!    <F10>    <C-O>:tabnext<CR>
     map     <S-F10>  :tabprev<CR>
     map!    <S-F10>  <C-O>:tabprev<CR>
endif


The lines between the endfunction and the last endif are optional 
(except of course the ":set tabline" command).


Best regards,
Tony.
-- 
There is no right or wrong, there is only your personal opinion.
                  (Bram Moolenaar)

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

Reply via email to