mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 00:10:23 -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:{
|
||||
"neocomplete close popup and save indent
|
||||
inoremap <silent> <CR> <C-r>=<SID>neocache_cr()<CR>
|
||||
function! s:neocache_cr()
|
||||
return pumvisible() ? "\<C-y>" : "\<CR>"
|
||||
endfunction
|
||||
if !has('nvim')
|
||||
"neocomplete close popup and save indent
|
||||
inoremap <silent> <CR> <C-r>=<SID>neocache_cr()<CR>
|
||||
function! s:neocache_cr()
|
||||
return pumvisible() ? "\<C-y>" : "\<CR>"
|
||||
endfunction
|
||||
|
||||
"neocomplete tab completion
|
||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
"neocomplete tab completion
|
||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
|
||||
"neocomplete close popup
|
||||
inoremap <expr><Backspace> neocomplete#smart_close_popup()."\<C-h>"
|
||||
"neocomplete close popup
|
||||
inoremap <expr><Backspace> neocomplete#smart_close_popup()."\<C-h>"
|
||||
|
||||
"neocomplete undo completion
|
||||
inoremap <expr><C-u> neocomplete#undo_completion()
|
||||
"neocomplete undo completion
|
||||
inoremap <expr><C-u> neocomplete#undo_completion()
|
||||
endif
|
||||
"}
|
||||
|
||||
"FORMATTING:{
|
||||
|
|
Loading…
Reference in a new issue