Skip to content

Instantly share code, notes, and snippets.

@DanielFGray

DanielFGray/thing.vim

Last active Mar 12, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.