Linux 使用vim打开文件时,如何解决这些错误?
因此,当我在我的Ubuntu20.04笔记本电脑上打开一个文件(即,Linux 使用vim打开文件时,如何解决这些错误?,linux,vim,terminal,ubuntu-20.04,Linux,Vim,Terminal,Ubuntu 20.04,因此,当我在我的Ubuntu20.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
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()
我甚至不知道在诊断这个问题时从哪里开始。你们有什么想法吗?谢谢大家! 看起来你的
.vimrc
坏了,你的vi
只是vim
的别名。请尝试修复您的配置(在我看来Vundle不知怎么搞砸了),或者删除~/.vimrc
,然后重新开始。我删除并重新创建了~/.vimrc,在键入vi示例时仍然会遇到相同的错误。R。然而,当我键入vim examples.R时,我没有得到任何错误。为什么呢?我需要在某处改变路径吗?我在帖子中更新了我的~/.vimrc文件,对其进行了一些清理。请记住,当作为vi
调用时,vim
以兼容模式启动。我从不这样使用它,因为我通常更喜欢vi
指的是最小的vi,而不是Neovim或Vim。您可以尝试安装nvi
,然后使用updatealternations
获取vi
以参考nvi
。请记住,在vi
或nvi
下,您不会获得任何奇特的功能,因此您可能只想使用(n)vim。好的,太好了。非常感谢你的帮助!祝你周末愉快:)我想说[r]标签可能与……无关@本博克:好电话。它已被删除。能否将$vim--version
的完整输出添加到问题主体中?