vim - 处理 vimrc 时检测到错误:-如何在 vim 中获取 pugins
问题描述
今天我正在制作我的自定义 vimrc,但它给了我这个错误。它不允许我使用任何插件。有人可以告诉我我做错了什么吗?这些行是它显示的错误:
E117: Unknown function: plug#begin
line 10:
E492: Not an editor command: Plug 'rbgrouleff/bclose.vim'
line 11:
E492: Not an editor command: Plug 'dbakker/vim-projectroot'
line 12:
E492: Not an editor command: Plug 'scrooloose/nerdtree'
line 13:
E492: Not an editor command: Plug 'junegunn/fzf'
line 14:
E492: Not an editor command: Plug 'junegunn/fzf.vim'
line 15:
E492: Not an editor command: Plug 'majutsushi/tagbar'
line 18:
E492: Not an editor command: Plug 'vim-airline/vim-airline'
line 19:
E492: Not an editor command: Plug 'vim-airline/vim-airline-themes'
line 20:
E492: Not an editor command: Plug 'bling/vim-bufferline'
line 21:
E492: Not an editor command: Plug 'altercation/vim-colors-solarized'
line 24:
E492: Not an editor command: Plug 'Raimondi/delimitMate'
line 25:
E492: Not an editor command: Plug 'scrooloose/nerdcommenter'
line 26:
E492: Not an editor command: Plug 'tpope/vim-sleuth'
line 27:
E492: Not an editor command: Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clangd-completer --go-completer --rust-completer --ts-completer' }
line 28:
E492: Not an editor command: Plug 'rdnetto/ycm-generator', { 'branch': 'stable' }
line 58:
E117: Unknown function: plug#end
line 97:
E216: No such group or event: TermOpen * set bufhidden=hide
解决方案
您需要安装 vim-plug,您可以在此处找到有关如何执行此操作的说明:https ://github.com/junegunn/vim-plug#installation
推荐阅读
- python - OpenCV 中的光流大小
- python - 我正在研究一个不和谐的机器人,我需要一个货币系统。不幸的是,每次我运行代码时,它都会给我一个关键错误
- mysql - HATEOAS RepresentationModelAssembler,带有 JSON 正文的 POST 返回 500:IllegalArgumentException:没有足够的变量值可用于扩展“id”
- sql - DELPHI:需要从列表框项中获取字段的值?
- webrtc - 如何使用 JsSIP 通知远程方视频/音频静音/取消静音
- c# - 使组件上的脚本仅适用于一个游戏对象?统一
- ajax - Hangfire 仪表板更改刷新周期
- symfony - SonataBlock - 添加输入 ModelListType
- google-calendar-api - 如何在 integromat 中格式化来自谷歌日历和 Dialogflow 的“开始日期”?
- javascript - 如何在javascript中选择和切换div内的元素