:h NERDTree:echo v:version: echos 800, but using Neovim 0.5?: 6.9.0let plugdir = fnamemodify($MYVIMRC, ":p:h") . "/tmp/vim-plug"
call plug#begin(plugdir)
Plug 'preservim/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind']}
call plug#end()
let NERDTreeMapCustomOpen = "<CR>"
let NERDTreeCustomOpenArgs = {'file': {'reuse': 'all', 'where': 'p', 'keepopen':0, 'stay':0}, 'dir':{}}
:NERDTreeToggle<CR>The file is opened, but NERDTree pane remains.
The file is opened, but NERDTree pane closed.
I have tried
" Automatically close NerdTree when you open a file
" let NERDTreeQuitOnOpen = 1
But I wish to use o to open a file and keep NERDTree pane, and <CR> to open a file and autoclose NERDTree pane afterwards.
Confirmed. What a great opportunity to clean this up! Currently, there are two somewhat related mechanisms for deciding whether to close NERDTree, and they are not cooperating. This will take some time to sort out and fix. This may result in a new major release, if my hunch is correct.
Most helpful comment
Confirmed. What a great opportunity to clean this up! Currently, there are two somewhat related mechanisms for deciding whether to close NERDTree, and they are not cooperating. This will take some time to sort out and fix. This may result in a new major release, if my hunch is correct.