mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
10 lines
347 B
VimL
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>
|