summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2013-03-13 15:46:56 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2013-03-13 15:46:56 +0100
commit5b63220c007b50b674a90cc67bbb73510d4865be (patch)
tree5f0b40b71f46fad92b59765613e29df64957ba0f
parent58b06b906b5ee125d2121374c0ab97d06380fc70 (diff)
downloaddotfiles-5b63220c007b50b674a90cc67bbb73510d4865be.tar.gz
[Vim] automatically close scratch buffer when autocompleting is done
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 4d26a30..226f4b2 100644
--- a/.vimrc
+++ b/.vimrc
@@ -118,3 +118,6 @@ vnoremap <S-Space> zA
let g:pymode_lint_write = 0
let g:EasyMotion_leader_key = '<Leader>'
+
+autocmd CursorMovedI * if pumvisible() == 0|silent! pclose|endif
+autocmd InsertLeave * if pumvisible() == 0|silent! pclose|endif