X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=8a6e07f4dc7ecf25224bc5ea4533232b881ddc76;hb=7727a2cd7afa1aae4770bef7e38fc7521ffb9ed4;hp=7cf73622c75318ddc72552589d4395aa5d1640f3;hpb=3bf5dd55acefb516d0213f105f2e03b64c72428d;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 7cf7362..8a6e07f 100644 --- a/vimrc +++ b/vimrc @@ -397,6 +397,7 @@ if has('statusline') endfunction function! s:StatuslineFileEncoding() if &fileencoding != '' && &fileencoding != 'utf-8' + \ && &filetype != 'help' return '[' . &fileencoding . ']' else return '' @@ -446,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