From 2888cbf5c8e0a49834c47c8b67d95261448e4c1b Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 2 Aug 2012 20:38:15 -0700 Subject: [PATCH] Check for python on plugin init --- plugin/youcompleteme.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index 292d1ed5..90a8de41 100644 --- a/plugin/youcompleteme.vim +++ b/plugin/youcompleteme.vim @@ -17,13 +17,18 @@ if exists( "g:loaded_youcompleteme" ) finish -" TODO: check for python too elseif 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" | + \ echohl None + finish endif + let g:loaded_youcompleteme = 1 let g:ycm_min_num_of_chars_for_completion =