From 367e61b6b0a628f1b6c90cb6f8520e4312f96e4c Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Tue, 12 Apr 2016 10:11:08 -0300 Subject: [PATCH] Use python2 for YCM post-installation YouCompleteMe's post-installation script only seems to work with python2 (this is actually mentioned in their docs). It seems that the sample documentation uses the system default python (which is no longer always python2), so let's better be explicit about it. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 679c3ea..33e3686 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ In that case, use `do` option to describe the task to be performed. ```vim Plug 'Shougo/vimproc.vim', { 'do': 'make' } -Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } +Plug 'Valloric/YouCompleteMe', { 'do': 'python2 install.py' } ``` If you need more control, you can pass a reference to a Vim function that @@ -208,7 +208,7 @@ function! BuildYCM(info) " - status: 'installed', 'updated', or 'unchanged' " - force: set on PlugInstall! or PlugUpdate! if a:info.status == 'installed' || a:info.force - !./install.py + !python2 install.py endif endfunction