1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:50:06 +08:00

Fix neovim startup

ref: https://github.com/SpaceVim/SpaceVim/issues/480#issuecomment-298476382
This commit is contained in:
wsdjeg 2017-05-02 20:14:09 +08:00
parent 7cf034217f
commit d8fab64e57

View File

@ -57,7 +57,7 @@ call vimfiler#custom#profile('default', 'context', {
augroup vfinit
au!
autocmd FileType vimfiler call s:vimfilerinit()
autocmd BufEnter * if (winnr('$') == 1 && &filetype ==# 'vimfiler') |
autocmd BufEnter * if (!has('vim_starting') && winnr('$') == 1 && &filetype ==# 'vimfiler') |
\ q | endif
augroup END
function! s:vimfilerinit()