简体   繁体   English

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

[英]How can I resolve these errors when I open a file with vim?

So when I open a file (ie, vi examples.R ) on my Ubuntu 20.04 laptop, I get the following string of errors:因此,当我在 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

My ~/.vimrc file is:我的 ~/.vimrc 文件是:

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

call plug#end()

I don't even know where to begin when diagnosing this issue.在诊断这个问题时,我什至不知道从哪里开始。 Do any of you have any thoughts?大家有什么想法吗? Thank you!谢谢!

It looks like you broke your .vimrc , and that your vi is just an alias to vim .看起来您破坏了.vimrc ,并且您的vi只是vim的别名。 Try either fixing up your configuration (it looks to me that Vundle got messed up somehow) or delete ~/.vimrc and start again.尝试修复您的配置(在我看来 Vundle 以某种方式搞砸了)或删除~/.vimrc并重新开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM