From 15605d77d69819d61abdaa319773fcfc1c2c02b5 Mon Sep 17 00:00:00 2001 From: Patrice Peterson Date: Fri, 1 Mar 2013 13:06:00 +0100 Subject: [PATCH] Silence dot completion mappings I find the long line that pops up in the command-line whenever I press `.` a bit distracting, and it would potentially overwrite other useful information displayed in there. This change silences the dot completion commands. --- ftplugin/python/jedi.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftplugin/python/jedi.vim b/ftplugin/python/jedi.vim index 3bf131c..80691f2 100644 --- a/ftplugin/python/jedi.vim +++ b/ftplugin/python/jedi.vim @@ -41,13 +41,13 @@ end if g:jedi#popup_on_dot if stridx(&completeopt, 'longest') > -1 if g:jedi#popup_select_first - inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>\C-N>" : "" + inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>\C-N>" : "" else - inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>" : "" + inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>" : "" end else - inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>\C-P>" : "" + inoremap . .=jedi#do_popup_on_dot() ? "\C-X>\C-O>\C-P>" : "" end end