From 829054c6b8c3f0bd3060791563c55af181601c4c Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 28 Jan 2018 13:40:35 +0800 Subject: [PATCH] Use nested autocmd for quite vimfiler by default, autocmd is not nested, so when auto quit vimfiler, it will not trigger VimLeavePro event. But some plugins use this autocmd to kill progress. --- config/plugins/vimfiler.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index e9bc7c529..958f40436 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -62,7 +62,7 @@ call vimfiler#custom#profile('default', 'context', { augroup vfinit au! autocmd FileType vimfiler call s:vimfilerinit() - autocmd BufEnter * if (!has('vim_starting') && winnr('$') == 1 && &filetype ==# 'vimfiler') | + autocmd BufEnter * nested if (!has('vim_starting') && winnr('$') == 1 && &filetype ==# 'vimfiler') | \ q | endif augroup END function! s:vimfilerinit()