X-Git-Url: https://v.licheni.net/stack/conf/vim.git/blobdiff_plain/e54686a810314cde477b4ccaad761dcff4c51a31..5ac261a1d8efda53d9d8e99b1e158b8543e572c8:/vimrc diff --git a/vimrc b/vimrc index 9f079ea..92292fd 100644 --- a/vimrc +++ b/vimrc @@ -245,6 +245,13 @@ au FileType * for l in values(filter(copy(ft_addons), string(expand('')) " SuperTab option for context aware completion let g:SuperTabDefaultCompletionType = "context" +" If you prefer the Omni-Completion tip window to close when a selection is +" " made, these lines close it on movement in insert mode or when leaving +" " insert mode +if has("autocmd") + autocmd CursorMovedI * if pumvisible() == 0|pclose|endif + autocmd InsertLeave * if pumvisible() == 0|pclose|endif +endif let g:clang_complete_copen = 1 let g:clang_complete_auto = 1