search

Home  >  Q&A  >  body text

vim - :NERDTree is not an editor command

Installing the nerdtree plug-in, it prompts that the installation has been successful. Enter: NERDTree. The prompt is not an editor command. I just started using vim. Please tell me what went wrong

filetype off

The following configurations are set based on other people’s blogs

set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()

Plugin 'gmarik/Vundle.vim'
Plugin 'git://github.com/scrooloose/nerdtree.git'
Plugin 'git://github.com/kien/ctrlp.vim.git'

call vundle#end()
filetype plugin indent on

ringa_leeringa_lee2774 days ago2146

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:41:10

    First you need to check whether you have successfully installed NERDTree. Enter vim and enter:

    :PluginList
    

    Check if there is NERDTree in your Vundle configuration list
    Then run:

    :PluginInstall
    

    Install the NERDTree plug-in. If there is a + sign in front of the list, it means you have successfully installed it, or an * sign (already installed)
    Then re-enter vim and enter:

    :NERDTreeToggle
    

    Command to start NERDTree
    If you want to open vim by default and start NERDTree, configure it in your vimrc file:

    autocmd StdinReadPre * let s:std_in=1
    autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
    

    You can refer to: NERDTree’s github documentation: https://github.com/scrooloose/nerdtree

    Hope it helps you:-D

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 16:41:10

    Executed :PluginInstall?

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 16:41:10

    After typing:NERD, press <Tab>Complete. If it can be completed, it can definitely be executed. If it cannot be completed, you need to check some path problems.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:41:10

    你的问题描述不具体,所以我也没法给出具体的回答。
    
    但是你可以参考一下一篇关于安装该插件的文章:http://www.cnblogs.com/xumenger/p/4358011.html
    
    注:一定要按照文章中所说的首先安装那个管理vim插件的插件
    

    reply
    0
  • Cancelreply