diff --git a/.vim/autoload/plug.vim b/.vim/autoload/plug.vim index b3bc1a6..15f4e1f 100644 --- a/.vim/autoload/plug.vim +++ b/.vim/autoload/plug.vim @@ -846,13 +846,14 @@ function! s:names(...) endfunction function! s:check_ruby() - silent! ruby require 'thread'; VIM::command('let g:plug_ruby = 1') - if get(g:, 'plug_ruby', 0) - unlet g:plug_ruby - return 1 + silent! ruby require 'thread'; VIM::command("let g:plug_ruby = '#{RUBY_VERSION}'") + if !exists('g:plug_ruby') + redraw! + return s:warn('echom', 'Warning: Ruby interface is broken') endif - redraw! - return s:warn('echom', 'Warning: Ruby interface is broken') + let ruby_version = split(g:plug_ruby, '\.') + unlet g:plug_ruby + return s:version_requirement(ruby_version, [1, 8, 7]) endfunction function! s:update_impl(pull, force, args) abort diff --git a/.vim/plugins.vim b/.vim/plugins.vim index 7e5bfc0..85ad2a6 100644 --- a/.vim/plugins.vim +++ b/.vim/plugins.vim @@ -39,7 +39,7 @@ Plug 'https://github.com/vim-airline/vim-airline.git' Plug 'https://github.com/vim-latex/vim-latex.git' if has('unix') - Plug 'https://github.com/Valloric/YouCompleteMe.git', { 'do': './install.sh --clang-completer' } + Plug 'https://github.com/Valloric/YouCompleteMe.git', { 'do': './install.sh' } Plug 'https://github.com/marijnh/tern_for_vim', { 'do': 'sudo npm install -g tern; npm install' } Plug 'https://github.com/scrooloose/syntastic.git', { 'do': 'sudo npm -g install eslint; sudo pip install --upgrade pyflakes' } endif