在我的vimrc中,
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p但是当我开始写一个文件时,它提示错误:
Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree有人能帮我吗?
发布于 2017-07-23 06:10:41
我尝试使用vim-plug安装NERDTree,所以当我启动vim并运行:PlugInstall时,我可以使用:NERDTree命令,但在使用后它不可用,原因是我没有下载插件,因为我使用的是github,所以根据documentation,你必须按需使用它,并将其封装在您的说明中:
call plug#begin('~/.vim/plugged') " Specify folder
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
call plug#end() " Initializes plugins所以你的插件现在可以使用了,你可以使用你的指令:
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd phttps://stackoverflow.com/questions/12732386
复制相似问题