Don't enable neocomplete keyboard bindings if neovim is being used

This commit is contained in:
Kevin MacMartin 2016-03-24 17:04:41 -04:00
parent f9526ca41e
commit 820bb5004a

View file

@ -704,20 +704,22 @@
"} "}
"AUTOCOMPLETION:{ "AUTOCOMPLETION:{
"neocomplete close popup and save indent if !has('nvim')
inoremap <silent> <CR> <C-r>=<SID>neocache_cr()<CR> "neocomplete close popup and save indent
function! s:neocache_cr() inoremap <silent> <CR> <C-r>=<SID>neocache_cr()<CR>
return pumvisible() ? "\<C-y>" : "\<CR>" function! s:neocache_cr()
endfunction return pumvisible() ? "\<C-y>" : "\<CR>"
endfunction
"neocomplete tab completion "neocomplete tab completion
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>" inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>"
"neocomplete close popup "neocomplete close popup
inoremap <expr><Backspace> neocomplete#smart_close_popup()."\<C-h>" inoremap <expr><Backspace> neocomplete#smart_close_popup()."\<C-h>"
"neocomplete undo completion "neocomplete undo completion
inoremap <expr><C-u> neocomplete#undo_completion() inoremap <expr><C-u> neocomplete#undo_completion()
endif
"} "}
"FORMATTING:{ "FORMATTING:{