X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vimrc;h=6e3726c1267c85dd5348a8fa46afc371004124dd;hb=936cca97dc46219cca23e91ea9411eec359432cf;hp=4e84299dc31011a6272f6eaefeab66e02348d826;hpb=0c74a1985f4846a509319bb558724818c84a7e45;p=profile.git diff --git a/.vimrc b/.vimrc index 4e84299..6e3726c 100644 --- a/.vimrc +++ b/.vimrc @@ -773,7 +773,15 @@ endfun "}}}2 " Helper for status line. " Show the size of the tabstop. fun! Show_Tabstop() "{{{2 - return &ts + if &et + return &ts + else + if Has_Unicode() + return &ts . "↹" + else + return &ts . "\\" + fi + endif endfun "}}}2 " Helper for status line. @@ -1256,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 @@ -1335,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("$")