【问题标题】:E492: Not an editor command: PluginstallE492:不是编辑器命令:Pluginstall
【发布时间】:2020-06-13 08:27:32
【问题描述】:

所以我尝试为 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   

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

【问题讨论】:

  • 访问:https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation。在plug#begin() 调用之前将代码放在你的.vimrc 中。

标签: vim


【解决方案1】:

如果你使用 Vundle,commands are Plugin and PluginInstall

命令PlugPlugInstall 用于vim-plug

【讨论】:

  • 在我将插件更改为插件并输入插件 PlugInstall 后弹出此消息“处理函数 vundle#installer#new: 时检测到错误:”和“未选择任何气泡”以进行操作顺便说一句谢谢帮助
  • @Jas0n PlugInstall -> PluginInstall
猜你喜欢
  • 2021-01-09
  • 1970-01-01
  • 2014-08-02
  • 2015-07-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多