Better check for min supported Vim version

This commit is contained in:
Strahinja Val Markovic 2013-07-12 10:23:01 -07:00
parent ddd0287436
commit 5c017bcabf

View File

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