• Cody Bonney
  • July 07, 2015
vim

Toggle the NERDTree Vim Plugin with a key binding

Typing out :NERDTreeToggle to toggle the NERDTree plugin in VIM is a pain. Adding the following line to your ~/.vimrc file will allow you to toggle the plugin using the F4 key instead.

nnoremap <F4> :NERDTreeToggle<CR>

more Vim posts

vim Install vim-airline using Pathogen
vim Change the size of the file browsing window in the NERDTree VIM Plugin
vim Jump to the last edited line in Vim
vim Toggle paste mode in Vim