So when I open a file (i.e., 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!
Advertisement
Answer
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.