mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
Destroyed _Footer (markdown)
10
_Footer.md
10
_Footer.md
@@ -1,10 +0,0 @@
|
|||||||
## How can I make sure vim does not open files and other buffers on NerdTree window?
|
|
||||||
|
|
||||||
```vim
|
|
||||||
" If more than one window and previous buffer was NERDTree, go back to it.
|
|
||||||
autocmd BufEnter * if bufname('#') =~# "^NERD_tree_" && winnr('$') > 1 | b# | endif
|
|
||||||
```
|
|
||||||
If you are using vim-plug, you'll also need to add these lines to avoid crashes when calling vim-plug functions while the cursor is on the NERDTree window:
|
|
||||||
```vim
|
|
||||||
let g:plug_window = 'noautocmd vertical topleft new'
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user