Set the tab header to match numberwidth. Extend it if signs are active.
Extend it further when in diff mode. Note that it isn't easy (if
possible at all) to determine if a window in the leftmost column has
these settings so the width may not always be correct.
"call <SID>X("PreProc", "#ff80ff", "", "none")
"call <SID>X("Type", "#60ff60", "", "none")
call <SID>X("Ignore", "#ffffff", "", "")
+ call <SID>X("TabLineFill", "#303030", "#90f020", "")
" My stuff.
hi def Normal guifg=#c0c0c0 guibg=#000020
" Tab line.
fun! Show_TabLine() "{{{2
- let l:s = "%#TabLineFill#Tabs:"
+ let l:colwidth = &numberwidth
+ if g:marksigns
+ let l:colwidth += 2
+ endif
+ if &diff == 1
+ let l:colwidth += 2
+ endif
+ let l:fmt = printf("%%s%% %ds", l:colwidth)
+ let l:s = printf(l:fmt, "%#TabLineFill#", "Tabs ")
let l:i = 0
while l:i < tabpagenr("$")