git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure the CWD precedes PROFILE_HOME in new CDPATH.
[profile.git]
/
.vimrc
diff --git
a/.vimrc
b/.vimrc
index
4e84299
..
c4b2131
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-773,7
+773,15
@@
endfun "}}}2
" Helper for status line.
" Show the size of the tabstop.
fun! Show_Tabstop() "{{{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.
endfun "}}}2
" Helper for status line.
@@
-1335,7
+1343,15
@@
endfun "}}}2
" Tab line.
fun! Show_TabLine() "{{{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("$")
let l:i = 0
while l:i < tabpagenr("$")