From 2d3bbbff439c3dea6463afe9c76e08c561b57db1 Mon Sep 17 00:00:00 2001 From: Arjan van der Velde Date: Thu, 10 Jan 2019 23:15:30 -0500 Subject: [PATCH] make VimLeave autocmd nested add "nested" to autocmd to make it play well w/ YouCompleteMe see https://github.com/valloric/youcompleteme/blob/109a0192795a9b7ea87e382cdbeeabcff091473c/README.md#ycm-does-not-shut-down-when-i-quit-vim --- autoload/airline/extensions/cursormode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/cursormode.vim b/autoload/airline/extensions/cursormode.vim index 3f3f7f1a..097ddd8b 100644 --- a/autoload/airline/extensions/cursormode.vim +++ b/autoload/airline/extensions/cursormode.vim @@ -111,7 +111,7 @@ endfunction augroup airline#extensions#cursormode autocmd! - autocmd VimLeave * call s:set_cursor_color_for(g:cursormode_exit_mode) + autocmd VimLeave * nested call s:set_cursor_color_for(g:cursormode_exit_mode) " autocmd VimEnter * call airline#extensions#cursormode#activate() autocmd Colorscheme * call airline#extensions#cursormode#activate() augroup END