1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00
SpaceVim/config/plugins_before/vimfiler.vim
2019-02-02 11:23:56 +08:00

10 lines
347 B
VimL

function! s:open_vimfiler() abort
" 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
nnoremap <silent> <F3> :call <SID>open_vimfiler()<CR>