jedi#auto_vim_configuration might not have been set before loading plugin. Therefore check if it was set.

This commit is contained in:
Dave Halter
2015-04-02 16:16:17 +02:00
parent d3fadd54c7
commit bf96f7d611
4 changed files with 11 additions and 12 deletions

View File

@@ -36,12 +36,12 @@ if g:jedi#auto_initialization
if g:jedi#auto_close_doc
" close preview if its still open after insert
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
end
end
endif
endif
if g:jedi#auto_vim_configuration
setlocal completeopt=menuone,longest,preview
if len(mapcheck('<C-c>', 'i')) == 0
inoremap <C-c> <ESC>
end
end
endif
endif