1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 12:10:05 +08:00

Merge pull request #1342 from wsdjeg/hotfix

Use nested autocmd for quite vimfiler
This commit is contained in:
Wang Shidong 2018-01-28 13:50:09 +08:00 committed by GitHub
commit e8ed346939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()