mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-15 06:47:07 +08:00
Don't map <C-c> if a mapping already exists, fixes #69
This commit is contained in:
@@ -33,8 +33,10 @@ end
|
|||||||
|
|
||||||
if g:jedi#auto_vim_configuration
|
if g:jedi#auto_vim_configuration
|
||||||
setlocal completeopt=menuone,longest,preview
|
setlocal completeopt=menuone,longest,preview
|
||||||
|
if len(mapcheck('<C-c>', 'i')) == 0
|
||||||
inoremap <C-c> <ESC>
|
inoremap <C-c> <ESC>
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if g:jedi#popup_on_dot
|
if g:jedi#popup_on_dot
|
||||||
if stridx(&completeopt, 'longest') > -1
|
if stridx(&completeopt, 'longest') > -1
|
||||||
|
|||||||
Reference in New Issue
Block a user