From: Simon Ruderich Date: Sun, 2 Dec 2012 21:56:34 +0000 (+0100) Subject: vimrc: Fix compatibility with Vim 6.4 and later. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7727a2cd7afa1aae4770bef7e38fc7521ffb9ed4;p=config%2Fdotfiles.git vimrc: Fix compatibility with Vim 6.4 and later. --- 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