From 0efdca96d8118f13056670c39311a5953db0321a Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 4 Nov 2014 10:16:56 -0800 Subject: [PATCH] Neo Necomplete/complecache install --- vimrc | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 9d2dee1..223d88d 100644 --- a/vimrc +++ b/vimrc @@ -46,12 +46,17 @@ Plugin 'bling/vim-airline' " Custom Status Line " -- System -- Plugin 'tpope/vim-dispatch' " Allow async make -Plugin 'Shougo/neocomplcache.vim' " Autocomplete Plugin 'tpope/vim-rsi' " emacs bindinds in insert Plugin 'tpope/vim-repeat' " Repeat mapped commands with . " Needs to be compiled Plugin 'Shougo/vimproc.vim' " Async for plugins +if has('lua') + Plugin 'Shougo/neocomplete.vim' " Autocomplete +else + Plugin 'Shougo/neocomplcache.vim' " Autocomplete +end + " -- Themes -- Plugin 'vividchalk.vim' Plugin 'wombat256.vim' @@ -346,12 +351,20 @@ nnoremap gw :Gwrite " Toggle QuickFix window nnoremap :QFix -" NeoComplCache -let g:neocomplcache_enable_at_startup = 1 -let g:neocomplcache_enable_smart_case = 1 -let g:neocomplcache_max_list = 10 -"let g:neocomplcache_enable_camel_case_completion = 1 -let g:neocomplcache_enable_fuzzy_completion = 1 +" neocomplete / neocomplcache +if has('lua') + let g:acp_enableAtStartup = 0 + let g:neocomplete#enable_at_startup = 1 + "let g:neocomplete#enable_smart_case = 1 + let g:neocomlete#max_list=10 +else + " NeoComplCache + let g:neocomplcache_enable_at_startup = 1 + "let g:neocomplcache_enable_smart_case = 1 + let g:neocomplcache_max_list = 10 + "let g:neocomplcache_enable_camel_case_completion = 1 + let g:neocomplcache_enable_fuzzy_completion = 1 +endif nmap a :Ag nmap i* :Ag-i'\b\b'