I\'m using omnifunc=pythoncomplete
. When autocompleting a word (e.g., os.
), I get the list of eligible class members and functions, as
You could throw in the following mappings to have certain keys try to close the preview window.
inoremap :wincmd z
inoremap ( :wincmd z(
inoremap ) :wincmd z)
inoremap , :wincmd z,
inoremap :wincmd z
inoremap :wincmd z
You could also use autocommands to close the preview window when you're finished in insert mode:
augroup GoAwayPreviewWindow
autocmd! InsertLeave * wincmd z
augroup end