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
50c7ed7
..
c4b2131
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-737,7
+737,7
@@
fun! Show_List() "{{{2
elseif Has_Unicode()
if w:iainlist == 1
" Just tabs.
elseif Has_Unicode()
if w:iainlist == 1
" Just tabs.
- return "
»
"
+ return "
⇥
"
else
" Full list.
return "¶"
else
" Full list.
return "¶"
@@
-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.
@@
-921,13
+929,15
@@
fun! Show_Space() "{{{2
let l:ret = GetSpaceMovement()
if l:ret != ""
if Has_Unicode()
let l:ret = GetSpaceMovement()
if l:ret != ""
if Has_Unicode()
- let l:ret = "â
\90
" . l:ret . Show_SearchForward()
+ let l:ret = "â
\96
" . l:ret . Show_SearchForward()
else
else
- let l:ret "[" . l:ret . Show_SearchForward() . "]"
+ let l:ret = "[" . l:ret . Show_SearchForward() . "]"
+ endif
endif
return l:ret
else
return Show_SearchForward()
endif
return l:ret
else
return Show_SearchForward()
+ endif
endfun "}}}2
" Show the status line.
endfun "}}}2
" Show the status line.
@@
-1191,7
+1201,7
@@
endfun "}}}2
fun! Cycle_List() "{{{2
" Pretty UTF-8 listchars.
if Has_Unicode()
fun! Cycle_List() "{{{2
" Pretty UTF-8 listchars.
if Has_Unicode()
- let basic='tab:
»
·,trail:…,extends:«,precedes:»'
+ let basic='tab:
⇥
·,trail:…,extends:«,precedes:»'
let eol='eol:¶'
if version >= "700"
let basic=basic . ',nbsp:•'
let eol='eol:¶'
if version >= "700"
let basic=basic . ',nbsp:•'
@@
-1333,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("$")