Install NERDTree file manager vim plugin and bind a key
- Reference How to install a vim plugin.
- Add lines to vimrc file.
:map <F7> :NERDTreeToggle %<CR> call plug#begin('~/.vim/plugged') Plug 'preservim/nerdtree' call plug#end() - :
so %to reload setting file. - :
PlugInstallto install plugin. - :
qto leave plugin install window - You have to edit a file via vi.
- Then, you can press
to toggle NERDTree file manager.