mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Provide alternate way to mirror the NERDTree on all tabs.
This commit is contained in:
@@ -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?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user