【发布时间】: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