mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-26 00:01:27 -05:00
Don't enable neocomplete keyboard bindings if neovim is being used
This commit is contained in:
parent
f9526ca41e
commit
820bb5004a
1 changed files with 13 additions and 11 deletions
|
@ -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:{
|
||||||
|
|
Loading…
Reference in a new issue