Sometimes during my workflow, I might want to open/search for a file on the go. I'd like to map a single key (say F6) to open and close NERDTree (ie. I want to toggle NERDTree view). Also, I'd like NERDTree to display hidden files and folders in its toggled view and I'd also like it to close automatically when I open a file for editing if that is possible. Thanks !
How do I open and close NERDTree (toggle NERDTree view) using a single keystroke?
plugin nerdtree
In your vimrc addnmap <F6> :NERDTreeToggle<CR>where <F6> is the key you want to map.