Browse Source

Add version check for Vim 7.4

viszu 11 years ago
parent
commit
eecbbb00bd
1 changed files with 7 additions and 5 deletions
  1. 7 5
      plugin/youcompleteme.vim

+ 7 - 5
plugin/youcompleteme.vim

@@ -21,11 +21,13 @@ set cpo&vim
 
 if exists( "g:loaded_youcompleteme" )
   finish
-elseif v:version < 703 || !has( 'patch584' )
-  echohl WarningMsg |
-        \ echomsg "YouCompleteMe unavailable: requires Vim 7.3.584+" |
-        \ echohl None
-  finish
+elseif v:version < 704
+  if v:version < 703 || !has( 'patch584' )
+    echohl WarningMsg |
+          \ echomsg "YouCompleteMe unavailable: requires Vim 7.3.584+" |
+          \ echohl None
+    finish
+  endif
 elseif !has( 'python' )
   echohl WarningMsg |
         \ echomsg "YouCompleteMe unavailable: requires python 2.x" |