当我用vim打开文件时如何解决这些错误?

问题描述 投票:0回答:2

因此,当我在 Ubuntu 20.04 笔记本电脑上打开文件(即

vi examples.R
)时,我收到以下字符串错误:

Error detected while processing /home/mikel/.vimrc:
line    1:
E319: Sorry, the command is not available in this version: call plug#begin('~/.vim/plugged')
line    2:
E492: Not an editor command: Plug 'sheerun/vim-polyglot'
line    3:
E492: Not an editor command: Plug 'trevordmiller/nova-vim'
line    4:
E492: Not an editor command: Plug 'jalvesaq/Nvim-R'
line    6:
E319: Sorry, the command is not available in this version: call plug#end()
Press ENTER or type command to continue

我的 ~/.vimrc 文件是:

call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'trevordmiller/nova-vim'
Plug 'jalvesaq/Nvim-R'

call plug#end()

诊断这个问题时我什至不知道从哪里开始。你们有什么想法吗?谢谢!

linux vim terminal ubuntu-20.04
2个回答
1
投票

看起来您破坏了您的

.vimrc
,并且您的
vi
只是
vim
的别名。尝试修复您的配置(在我看来,Vundle 不知何故搞砸了)或删除
~/.vimrc
并重新开始。


0
投票

apt 安装 vim && apt 删除 vim-tiny

© www.soinside.com 2019 - 2024. All rights reserved.