From de70b1ed5db1202269fadb4c5d7a3e37d9a987b6 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 11 Jun 2015 07:22:00 +0200 Subject: [PATCH] Exit snippets when entering/exiting command window. Fixes #510. --- plugin/UltiSnips.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/UltiSnips.vim b/plugin/UltiSnips.vim index 26ac44b..dcf62ce 100644 --- a/plugin/UltiSnips.vim +++ b/plugin/UltiSnips.vim @@ -61,8 +61,12 @@ augroup UltiSnips au! au CursorMovedI * call UltiSnips#CursorMoved() au CursorMoved * call UltiSnips#CursorMoved() - au BufLeave * call UltiSnips#LeavingBuffer() + au InsertLeave * call UltiSnips#LeavingInsertMode() + + au BufLeave * call UltiSnips#LeavingBuffer() + au CmdwinEnter * call UltiSnips#LeavingBuffer() + au CmdwinLeave * call UltiSnips#LeavingBuffer() augroup END call UltiSnips#map_keys#MapKeys()