fix the hot key description

np2048
2019-03-16 21:42:37 +03:00
parent c6465b7371
commit c0c478470e

@@ -80,7 +80,7 @@ Use the `t` and `T` mappings in the NERDTree window.
## How can I close NERDTree window after opening a file in it ## How can I close NERDTree window after opening a file in it
You can define a hot key for it in your .vimrc file. In the example below the d+<Enter> key is defined to do so. This hotkey will be valid only until the NERDTree is closed. You can define a hot key for it in your .vimrc file. In the example below the d+<CR> key is defined to do so. This hotkey will be valid only until the NERDTree is closed.
autocmd BufEnter NERD_tree_* nmap d<CR> <CR> :NERDTreeToggle <CR> autocmd BufEnter NERD_tree_* nmap d<CR> <CR> :NERDTreeToggle <CR>
autocmd BufLeave NERD_tree_* unmap d<CR> autocmd BufLeave NERD_tree_* unmap d<CR>