在我的vimrc文件中,
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
但是当我开始写文件时,它提示错误:
Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree
有人能帮我吗?
在我的vimrc文件中,
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
但是当我开始写文件时,它提示错误:
Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree
call plug#begin('~/.vim/plugged') " Specify folder
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
call plug#end() " Initializes plugins
现在您的插件已经可用,您可以按照您的说明进行使用:
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p