diff --git a/config/plugins_before/vimfiler.vim b/config/plugins_before/vimfiler.vim index 3684f4243..fb44ade29 100644 --- a/config/plugins_before/vimfiler.vim +++ b/config/plugins_before/vimfiler.vim @@ -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