You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let NERDTreeShowHidden =1let NERDTreeSortHiddenFirst =1let NERDTreeIgnore = ['.DS_Store', '\.swp$', '\~$']
let NERDTreeStatusline ='NERDTree'
I've verified the issue occurs with only NERDTree installed.
Steps to Reproduce the Issue
Run nvim, then
:e file.txt
:NERDTreeFocus
:wincmd p
:NERDTreeFocus
Current Result (Include screenshots where appropriate.)
When running the first :NERDTreeFocus, the cursor line appears in the NERDTree window and disappears from the other window (expected)
When running the second :NERDTreeFocus, the function s:NERDTree.CursorToTreeWin() from lib/nerdtree/nerdtree.vim is triggered, and my custom autocmds are not run, thus the cursor line does not appear in the NERDTree window, and remains visible in the other window (NOT expected)
Expected Result
I would expect custom autocmds to be run when switching to the NERDTree window with :NERDTreeFocus, even when the NERDTree window is already open. I went through someof the related issues, but I do not understand why all events are disabled when jumping to the NERDTree window.
Self-Diagnosis
:h NERDTree
Environment (for bug reports)
Operating System: Linux (kernel 5.5.17)
Vim/Neovim version
:echo v:version
: 800 (NVIM v0.4.3)NERDTree version, found on 1st line in NERDTree quickhelp
?
: 6.7.7vimrc settings
Steps to Reproduce the Issue
Run
nvim
, thenCurrent Result (Include screenshots where appropriate.)
:NERDTreeFocus
, the cursor line appears in the NERDTree window and disappears from the other window (expected):NERDTreeFocus
, the functions:NERDTree.CursorToTreeWin()
from lib/nerdtree/nerdtree.vim is triggered, and my custom autocmds are not run, thus the cursor line does not appear in the NERDTree window, and remains visible in the other window (NOT expected)Expected Result
I would expect custom autocmds to be run when switching to the NERDTree window with
:NERDTreeFocus
, even when the NERDTree window is already open. I went through someof the related issues, but I do not understand why all events are disabled when jumping to the NERDTree window.Related issues
#900, #684, #261 (all closed though).
The text was updated successfully, but these errors were encountered: