X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vimrc;h=c4b2131f63695494fc9d158bdb660d5e0b385ca4;hp=4e84299dc31011a6272f6eaefeab66e02348d826;hb=92baf2b71dfac31f0d2204eff97faca94c3f4b2e;hpb=0c74a1985f4846a509319bb558724818c84a7e45 diff --git a/.vimrc b/.vimrc index 4e84299..c4b2131 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. @@ -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("$")