1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

Open Vimfiler windows for current project (#2546)

This commit is contained in:
Wang Shidong 2019-02-02 11:23:56 +08:00 committed by GitHub
parent dc899187c3
commit 0c36a152fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
function! s:open_vimfiler() abort
silent VimFiler
" check if VimFiler exist, if the windows has been opened, just close the
" vimfiler windows, if the vimfiler widnows is not exist, open vimfiler for
" current project.
silent exe 'VimFiler ' . get(b:, 'rootDir', '')
doautocmd WinEnter
endfunction