X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=8a6e07f4dc7ecf25224bc5ea4533232b881ddc76;hb=7727a2cd7afa1aae4770bef7e38fc7521ffb9ed4;hp=306e838615498c0975fefa448bdb7b7e524dea24;hpb=c7773137ac274d58e7bd68d7c6bb67e6b7f272bf;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 306e838..8a6e07f 100644 --- a/vimrc +++ b/vimrc @@ -447,10 +447,12 @@ if has('statusline') 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