Skip to content

Error when opening command window with mapping in NERDTree buffer #1046

Closed
@Chris-Slade

Description

@Chris-Slade

Self-Diagnosis

  • I have searched the issues for an answer to my question.
  • I have reviewed the NERDTree documentation. :h NERDTree
  • I have reviewed the Wiki.
  • I have searched the web for an answer to my question.

Environment (for bug reports)

  • Operating System: macOS 18.7.0
  • Vim/Neovim version :echo v:version: 810 (patches 1-2050)
  • NERDTree version, found on 1st line in NERDTree quickhelp ?: 6.1.1
  • vimrc settings
    • Minimal .vimrc to reproduce (using vim-plug):
    set nocompatible
    
    call plug#begin('~/.vim/bundle/')
    Plug 'scrooloose/nerdtree'
    call plug#end()
    
    noremap : q:i
    

Steps to Reproduce the Issue

  1. Open and move the cursor to a NERDTree buffer
  2. Press :

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions