E492:不是编辑器命令:Pluginstall

Jas*_*s0n 5 vim

所以我尝试为 vim 安装一些插件,但弹出一些错误“E492:不是编辑器命令:Pluginstall”我下载了 Vundle,我认为我正确输入了其他内容

syntax on


set nocompatible          
filetype off
set rtp+=~/.vim/bundle/Vundle.vim

set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch

set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey

call vundle#begin()

Plug 'gmarik/vundle'
Plug 'morhetz/gruvbox'
plug 'jremmen/vim-ripgrep'
Plug 'tpope/vim-fugitive'
Plug 'vim-utils/vim-man'
Plug 'git@github.com:kien/ctrlp.vim.git'
Plug 'git@github.com:Valloric/YouCompleteMe.git'
Plug 'mbill/undotree' 

call vundle#end()
filetype plugin indent on   
Run Code Online (Sandbox Code Playgroud)

和 source % 工作正常,但是当我输入 :PluginInstall 时会弹出错误

phd*_*phd 5

如果您使用 Vundle,则命令为PluginPluginInstall

命令PlugPlugInstall用于vim-plug.

  • @Jas0n `PlugInstall` -> `PluginInstall` (2认同)