Browse Source

Disable vim statusline options on older versions of vim

Emmanuel Bouthenot 12 years ago
parent
commit
ff68849832
1 changed files with 5 additions and 2 deletions
  1. 5 2
      .vim/vimrc

+ 5 - 2
.vim/vimrc

@@ -5,6 +5,7 @@
 "  This file is distributed in the hope that it will be useful,
 "  but WITHOUT ANY WARRANTY
 "
+"
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Useful functions
@@ -139,7 +140,10 @@ set ttyfast "fast terminal connection support
 set shortmess=a "abbreviations on status line
 set laststatus=2 "always statusline
 set statusline=
-set statusline+=\ %<%F\ %h%m%r%y%w%q
+set statusline+=\ %<%F\ %h%m%r%y%w
+if version >= 730
+    set statusline+=%q
+endif
 set statusline+=\ [%{GetMode()}(%n,%{mode()})]
 set statusline+=\ %{fugitive#statusline()}
 set statusline+=%=
@@ -321,7 +325,6 @@ endfunction
 nmap <F4> :call ToggleSpell()<CR>
 imap <F4> <Esc>:call ToggleSpell()<CR>a
 
-
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " TagList setup
 "