From 5c017bcabf2ec8114cbf8f45b3d20d570013bd27 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 12 Jul 2013 10:23:01 -0700 Subject: [PATCH] Better check for min supported Vim version --- plugin/youcompleteme.vim | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index 940ca304..34f2d44a 100644 --- a/plugin/youcompleteme.vim +++ b/plugin/youcompleteme.vim @@ -21,13 +21,11 @@ set cpo&vim if exists( "g:loaded_youcompleteme" ) 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 v:version < 703 || (v:version == 703 && !has('patch584')) + echohl WarningMsg | + \ echomsg "YouCompleteMe unavailable: requires Vim 7.3.584+" | + \ echohl None + finish elseif !has( 'python' ) echohl WarningMsg | \ echomsg "YouCompleteMe unavailable: requires python 2.x" |