From eecbbb00bd60f3b9769610ceed82e20cd4375854 Mon Sep 17 00:00:00 2001 From: viszu Date: Sat, 6 Jul 2013 17:34:13 +0200 Subject: [PATCH] Add version check for Vim 7.4 --- plugin/youcompleteme.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index e96a0875..940ca304 100644 --- a/plugin/youcompleteme.vim +++ b/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" |