Skip to content

Instantly share code, notes, and snippets.

@DanielFGray
Last active March 12, 2016 07:06
Show Gist options
  • Save DanielFGray/f6d7671ec08f7f95f879 to your computer and use it in GitHub Desktop.
Save DanielFGray/f6d7671ec08f7f95f879 to your computer and use it in GitHub Desktop.
call plug#begin()
"" ...
if executable('clang')
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh' }
let g:completionEngine = 'ycm'
else
if has('lua') && (version >= 704 || version == 703 && has('patch885'))
Plug 'Shougo/neocomplete.vim'
let g:completionEngine = 'neocomplete'
else
Plug 'Shougo/neocomplcache.vim'
let g:completionEngine = 'neocomplcache'
endif
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
endif
"" ...
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment