Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Created February 9, 2016 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/a052d08c1fcaf2063614 to your computer and use it in GitHub Desktop.
Save ehzawad/a052d08c1fcaf2063614 to your computer and use it in GitHub Desktop.
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' }
function! BuildYCM(info)
if a:info.status == 'installed' || a:info.force
!./install.sh --clang-completer
endif
endfunction
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') }
call plug#end()
" function! BuildTern(info)
" if a:info.status == 'installed' || a:info.force
" !npm install
" endif
" endfunction
" Plug 'marijnh/tern_for_vim', { 'do': function('BuildTern') }
" function! Installjshint(info)
" if a:info.status == 'installed' || a:info.force
" !npm install -g jshint
" endif
" endfunction
" Plug 'scrooloose/syntastic', { 'do': function('Installjshint') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment