#11 Vim NERDTree toggle shortcut

Useful shortcut for opening NERDTree

The NERDTree is a file system explorer for the Vim editor. Using this plugin, users can visually browse complex directory hierarchies, quickly open files for reading or editing, and perform basic file system operations.

NerdTree on github

Add these lines to your .vimrc :

Plugin 'preservim/nerdtree'
map <leader>nj :NERDTreeToggle<CR>

leader is a special key which you press indicate a next keystrokes will trigger a shortcut to a command in Vim.

I have my leader defined in .vimrc :

let mapleader = ","
"*<Leader>* *mapleader* To define a mapping which uses the "mapleader"
variable, the special string "<Leader>" can be used.
It is replaced with the string value of "mapleader"

& ' * ¦ \ ¢ : , @ © ¤ ↓ ° ÷ $ = ! ½ ¼ ⅛ ¾ ⅜ ⅝ ⅞ > ½ ― ‐ ¡ ¿ « ← { “ _ ( [ ‘ < µ ·   ¬ # Ω ª º ¶ % . + ± £ ? " » → } ” ® ) ] ’ § ; ­ / ♪ ¹ ² ³ × ™ ↑ | ¥