mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 11:34:51 +08:00
ctrl space cycles now through results, when used multiple times, fixes #118
This commit is contained in:
@@ -13,7 +13,11 @@ if g:jedi#auto_initialization
|
|||||||
" map ctrl+space for autocompletion
|
" map ctrl+space for autocompletion
|
||||||
if g:jedi#autocompletion_command == "<C-Space>"
|
if g:jedi#autocompletion_command == "<C-Space>"
|
||||||
" in terminals, <C-Space> sometimes equals <Nul>
|
" in terminals, <C-Space> sometimes equals <Nul>
|
||||||
inoremap <buffer><Nul> <C-X><C-O>
|
inoremap <expr> <Nul> pumvisible() \|\| &omnifunc == '' ?
|
||||||
|
\ "\<lt>C-n>" :
|
||||||
|
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
|
||||||
|
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
|
||||||
|
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
|
||||||
endif
|
endif
|
||||||
execute "inoremap <buffer>".g:jedi#autocompletion_command." <C-X><C-O>"
|
execute "inoremap <buffer>".g:jedi#autocompletion_command." <C-X><C-O>"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user