UsePlugin 'fern.vim' " ========================= " 'lambdalisue/fern.vim' " ========================= noremap ff Fern . -stay -drawer -keep -toggle -reveal=% -width=40 let g:fern#keepalt_on_edit = 1 let g:fern#disable_default_mappings = 1 let g:fern#default_hidden = 1 let g:fern#hide_cursor = 0 let g:fern#disable_drawer_auto_resize = 0 " let g:fern#mark_symbol = '●' " let g:fern#renderer#default#collapsed_symbol = '▷ ' " let g:fern#renderer#default#expanded_symbol = '▼ ' " let g:fern#renderer#default#leading = ' ' " let g:fern#renderer#default#leaf_symbol = ' ' " let g:fern#renderer#default#root_symbol = '~ ' function! s:init_fern() abort nmap r (fern-action-rename) nmap c (fern-action-copy) nmap n (fern-action-new-file) nmap N (fern-action-new-dir) nmap d (fern-action-trash) nmap g (fern-action-grep) nmap i (fern-action-include) nmap e (fern-action-exclude) " nmap (fern-action-redraw) "open or move directory nmap e (fern-action-open:system) nmap h (fern-action-collapse) nmap l (fern-action-open-or-expand) nmap (fern-action-open-or-expand) nmap o (fern-action-open-or-expand) nmap L (fern-enter-and-tcd) nmap H (fern-leave-and-tcd) nmap (fern-enter-and-tcd) \ (fern-action-enter) \ (fern-wait) \ (fern-action-tcd:root) nmap (fern-leave-and-tcd) \ (fern-action-leave) \ (fern-wait) \ (fern-action-tcd:root) endfunction augroup vimrc_fern autocmd! autocmd FileType fern call s:init_fern() augroup END