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
Current Result (Include screenshots where appropriate.)
You'll get the following errors before the command window opens:
Error detected while processing function 253[2]..220[2]..nerdtree#exec:
line 5:
E11: Invalid in command-line window; <CR> executes, CTRL-C quits
Error detected while processing function 253[7]..nerdtree#exec:
line 5:
E11: Invalid in command-line window; <CR> executes, CTRL-C quits
Expected Result
Command window should open without errors.
The text was updated successfully, but these errors were encountered:
NERDTree has an autocommand set up to remember the state of NERDTree when focus leaves that window, so that it can be restored when NERDTree becomes focused again. NERDTree takes the following steps, after going to the [Command Line] window:
Go back to the NERDTree
Record data that needs to be remembered.
Return to the [Command Line] window.
The problem occurs when the script tries to leave the [Command Line] window in steps 1 and 3. That window does not allow you to enter the command NERDTree is using to switch windows: wincmd w
I don't consider this a bug, since you've redefined basic Vim functionality. You could try the following autocmd, instead of your noremap : q:i, to mitigate the error messages.
@PhilRunninger Thanks for the response. If it makes a difference, the same errors can be caused without changing any of Vim's basic behavior, besides setting nocompatible, by pressing CTRL-F after accessing the command line from a NERDTree buffer. That should be considered a bug, no?
It also seems to be a regression, since I've been using NERDTree for a while now but don't recall running into these errors until recently. A quick bisect points to 98a5d1f, but since that's from 2014 and I haven't seen these errors before the last few days, I'm thinking it possibly has something to do with my Vim version as well. (I recently upgraded both NERDTree and Vim.) I'll look into it more tonight when I have access to my other machine, to see how it works across different versions of Vim.
Self-Diagnosis
:h NERDTree
Environment (for bug reports)
:echo v:version
: 810 (patches 1-2050)?
: 6.1.1Steps to Reproduce the Issue
:
Current Result (Include screenshots where appropriate.)
You'll get the following errors before the command window opens:
Expected Result
Command window should open without errors.
The text was updated successfully, but these errors were encountered: