np2048
2019-03-16 21:40:30 +03:00
parent 1225b1690e
commit c6465b7371

@@ -76,4 +76,11 @@ Use these variables in your vimrc. Note that below are default arrow symbols.
## How can I open files, directories, and bookmarks in new tabs?
Use the `t` and `T` mappings in the NERDTree window.
Use the `t` and `T` mappings in the NERDTree window.
## 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.
autocmd BufEnter NERD_tree_* nmap d<CR> <CR> :NERDTreeToggle <CR>
autocmd BufLeave NERD_tree_* unmap d<CR>