call Iain_Vars()
if b:iainlist == 0
" No list.
- return " "
+ return " "
elseif b:iainlist == 1
" Just tabs.
- return "\\_"
+ return "_"
else
" Full list.
- return "\.\$"
+ return "\$"
endif
endfun
call Iain_Vars()
let b:iainhex = ! b:iainhex
if b:iainhex
- set statusline=%2n\:\ %<%f\ [%{Show_List()}][%{Show_Case()}]%y%m%r\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P
+ set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}]%y%m%r\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P
else
- set statusline=%2n\:\ %<%f\ [%{Show_List()}][%{Show_Case()}]%y%m%r\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P
+ set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}]%y%m%r\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P
endif
endfun
endfun
fun Show_Case()
- if &ic | return "ca" | else | return "Ca" | endif
+ if &ic | return "c" | else | return "C" | endif
+endfun
+
+fun Show_Tabstop()
+ return &ts
endfun
" Swap hex/decimal statusline with ,x