简体   繁体   中英

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:

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:

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 . Try either fixing up your configuration (it looks to me that Vundle got messed up somehow) or delete ~/.vimrc and start again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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