set statusline=
" on the left
- set statusline+=%02n " buffer number
- set statusline+=%{SBC()} " highest buffer number
+ set statusline+=%02n " buffer number
+ set statusline+=%{SBC()} " highest buffer number
set statusline+=:
if has('modify_fname') && v:version >= 700 " some functions need 7.0
- set statusline+=%{SRF()} " path to current file
- set statusline+=\ " space after path
+ set statusline+=%{SRF()} " path to current file
+ set statusline+=\ " space after path
else
- set statusline+=%f\ " path to current file in buffer
+ set statusline+=%f\ " path to current file in buffer
endif
- set statusline+=%h " [help] if buffer is help file
- set statusline+=%w " [Preview] if buffer is preview buffer
- set statusline+=%m " [+] if buffer was modified,
- " [-] if 'modifiable' is off
- set statusline+=%r " [RO] if buffer is read only
+ set statusline+=%h " [help] if buffer is help file
+ set statusline+=%w " [Preview] if buffer is preview buffer
+ set statusline+=%m " [+] if buffer was modified,
+ " [-] if 'modifiable' is off
+ set statusline+=%r " [RO] if buffer is read only
" on the right
set statusline+=%= " right align