X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vimrc;h=6e3726c1267c85dd5348a8fa46afc371004124dd;hb=936cca97dc46219cca23e91ea9411eec359432cf;hp=7a3ca5db2d1d4149d37b1a57425fa118d4633c90;hpb=b41415a3acf0d0ff344362c7ef2ec37049c6781d;p=profile.git diff --git a/.vimrc b/.vimrc index 7a3ca5d..6e3726c 100644 --- a/.vimrc +++ b/.vimrc @@ -1264,7 +1264,7 @@ fun! Cycle_Alt() "{{{2 call Iain_Vars() let b:iainalt = ! b:iainalt call Show_StatusLine() -endfun "{{{2 +endfun "}}}2 " To be overridden later if applicable. fun! Extra_Whitespace_Match() "{{{2 @@ -1343,7 +1343,15 @@ endfun "}}}2 " 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("$")