vim - :NERDTree is not an editor command
ringa_lee
ringa_lee 2017-05-16 16:39:10
0
4
2110

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_lee
ringa_lee

ringa_lee

reply all(4)
伊谢尔伦

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

巴扎黑

Executed :PluginInstall?

漂亮男人

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.

伊谢尔伦
你的问题描述不具体,所以我也没法给出具体的回答。

但是你可以参考一下一篇关于安装该插件的文章:http://www.cnblogs.com/xumenger/p/4358011.html

注:一定要按照文章中所说的首先安装那个管理vim插件的插件
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template