Skip to content

Instantly share code, notes, and snippets.

Last active March 12, 2016 07:06
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
call plug#begin()
"" ...
if executable('clang')
Plug 'Valloric/YouCompleteMe', { 'do': './' }
let g:completionEngine = 'ycm'
if has('lua') && (version >= 704 || version == 703 && has('patch885'))
Plug 'Shougo/neocomplete.vim'
let g:completionEngine = 'neocomplete'
Plug 'Shougo/neocomplcache.vim'
let g:completionEngine = 'neocomplcache'
if g:completionEngine == 'ycm'
"" add your YCM settings here
elseif exists('g:completionEngine')
let g:{g:completionEngine}#enable_at_startup = 1
"" {brace syntax} like above lets you maintain the same settings for neocomplete and neocomplcache
"" ...
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment