set statusline+=%m " [+] if buffer was modified,
" [-] if 'modifiable' is off
set statusline+=%r " [RO] if buffer is read only
- set statusline+=%#Error# " display warnings
- set statusline+=%{SFF()} " - unexpected file format
- set statusline+=%{SFE()} " - unexpected file encoding
- set statusline+=%## " continue with normal colors
+ if v:version >= 700 " %#..# needs 7.0
+ set statusline+=%#Error# " display warnings
+ set statusline+=%{SFF()} " - unexpected file format
+ set statusline+=%{SFE()} " - unexpected file encoding
+ set statusline+=%## " continue with normal colors
+ endif
" on the right
set statusline+=%= " right align