v.licheni.net
/
stack
/
conf
/
vim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc439c4
)
auto close onmi completion tip
author
stack
<stack@inventati.org>
Sun, 21 Oct 2012 17:43:11 +0000
(19:43 +0200)
committer
stack
<stack@inventati.org>
Sun, 21 Oct 2012 17:43:11 +0000
(19:43 +0200)
vimrc
patch
|
blob
|
history
diff --git
a/vimrc
b/vimrc
index
9f079ea
..
92292fd
100644
(file)
--- a/
vimrc
+++ b/
vimrc
@@
-245,6
+245,13
@@
au FileType * for l in values(filter(copy(ft_addons), string(expand('<amatch>'))
" SuperTab option for context aware completion
let g:SuperTabDefaultCompletionType = "context"
" 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
let g:clang_complete_copen = 1
let g:clang_complete_auto = 1