Don't map <C-c> if a mapping already exists, fixes #69

This commit is contained in:
David Halter
2013-01-11 11:03:19 +01:00
parent 3c55a4bed6
commit 098cdb3eb8

View File

@@ -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