From 0c36a152fe4c341f30a76e94404ab05010fa2863 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sat, 2 Feb 2019 11:23:56 +0800 Subject: [PATCH] Open Vimfiler windows for current project (#2546) --- config/plugins_before/vimfiler.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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