从我的.vimrc中获得:
line 16:
E319: Sorry, the command is not available in this version: filetype on
line 17:
E319: Sorry, the command is not available in this version: filetype plugin on
line 18:
E319: Sorry, the command is not available in this version: filetype indent on
line 21:
E319: Sorry, the command is not available in this version: syntax on
line 45:
E319: Sorry, the command is not available in this version: match ExtraWhitespace /\s\+$/
line 46:
E319: Sorry, the command is not available in this version: autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
line 47:
E319: Sorry, the command is not available in this version: autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
line 48:
E319: Sorry, the command is not available in this version: autocmd InsertLeave * match ExtraWhitespace /\s\+$/
line 49:
E319: Sorry, the command is not available in this version: autocmd BufWinLeave * call clearmatches()
我可以删除这些行,但是我想知道我真正缺少的是什么,或者需要升级导致此问题,因为此文件之前对我有用。
我因为同样的问题来到这里。根据正确的答案,我发现
—
Jelmer '16
vim
没有安装,但是安装了vi
。安装后vim
一切正常。
就我而言,
—
巴勃罗
:version
它没有提及任何有关GUI的信息,而安装-gui-commmon或-runtime并不能解决问题,它处于打开状态~/.vimrc
。
vim-tiny
默认情况下安装了skinny 软件包,其中不包括该vim-runtime
软件包。我通过安装更具膨胀性的vim
软件包来修复E319 ,该软件包具有vim-runtime
依赖性。