> fu! 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 .= '%=%#TabHead#'.v:fname_in

Perhaps change the line above to something like
        let s .= '%=%<%{getcwd()}'

I'm not sure what the v:fname_in was supposed to be doing anyway, to be
honest; it doesn't seem to me like it would be relevant at all.

Obviously the whole 'close' label has already been removed, contrary to
the comment.

Does that help? If not, try leaving out the %< part. Is it obvious that
I don't really know what I'm talking about...?

Ben.

>    " endif
> 
>   return s
> endfu
> 
> fu! MyTabLabel(n)
>   let buflist = tabpagebuflist(a:n)
>   let winnr = tabpagewinnr(a:n)
>    return '['.a:n.']'.bufname(buflist[winnr - 1])
> endfu
> > 
> 


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

Reply via email to