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

10 lines
347 B
VimL
Raw Normal View History

2018-03-03 16:28:16 +08:00
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', '')
2018-03-03 16:28:16 +08:00
doautocmd WinEnter
endfunction
nnoremap <silent> <F3> :call <SID>open_vimfiler()<CR>