Mapping: remap of <C-Space>: use <buffer> and map to <C-Space>

Mapping it to <C-Space> should be enough, and makes it unnecessary to
map everything twice.
This commit is contained in:
Daniel Hahler
2015-04-30 01:50:22 +02:00
parent 78ac52a26e
commit cfb76259f1

View File

@@ -10,8 +10,8 @@ if g:jedi#auto_initialization
" map ctrl+space for autocompletion " map ctrl+space for autocompletion
if g:jedi#completions_command == "<C-Space>" if g:jedi#completions_command == "<C-Space>"
" in terminals, <C-Space> sometimes equals <Nul> " In terminals, <C-Space> sometimes equals <Nul>.
inoremap <expr> <Nul> jedi#complete_string(0) imap <buffer> <Nul> <C-Space>
endif endif
if g:jedi#completions_command != "" if g:jedi#completions_command != ""
execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)" execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)"