Provide alternate way to mirror the NERDTree on all tabs.

This commit is contained in:
Phil Runninger
2020-12-19 20:28:15 -05:00
committed by GitHub
parent 2406c456ee
commit aaa946fb6b

View File

@@ -162,6 +162,11 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
" Open the existing NERDTree on each new tab. " Open the existing NERDTree on each new tab.
autocmd BufWinEnter * silent NERDTreeMirror autocmd BufWinEnter * silent NERDTreeMirror
``` ```
or change your NERDTree-launching shortcut key like so:
```vim
" Mirror the NERDTree before showing it. This makes it the same on all tabs.
nnoremap <C-n> :NERDTreeMirror<CR>:NERDTreeFocus<CR>
```
### How can I change the default arrows? ### How can I change the default arrows?