-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.statusline
21 lines (21 loc) · 1.08 KB
/
.vimrc.statusline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
function! HighlightSearch()
if &hls
return 'H'
else
return ''
endif
endfunction
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"set statusline=
"set statusline+=%7*\[%n] "buffernr
"set statusline+=%1*\ %<%F\ "File+path
"set statusline+=%2*\ %y\ "FileType
"set statusline+=%3*\ %{''.(&fenc!=''?&fenc:&enc).''} "Encoding
"set statusline+=%3*\ %{(&bomb?\",BOM\":\"\")}\ "Encoding2
"set statusline+=%4*\ %{&ff}\ "FileFormat (dos/unix..)
"set statusline+=%5*\ %{&spelllang}\%{HighlightSearch()}\ "Spellanguage & Highlight on?
"set statusline+=%8*\ %=\ row:%l/%L\ (%03p%%)\ "Rownumber/total (%)
"set statusline+=%9*\ col:%03c\ "Colnr
"set statusline+=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? Top/bot.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""