vim的nord颜色方案与文档不匹配
我按照说明安装了该方案,但颜色仍然与文档中的颜色不同。 操作系统-ubuntu 14,通过ssh连接。 应用,重新启动vimvim的nord颜色方案与文档不匹配,vim,color-scheme,Vim,Color Scheme,我按照说明安装了该方案,但颜色仍然与文档中的颜色不同。 操作系统-ubuntu 14,通过ssh连接。 应用,重新启动vim :PlugInstall ~$ vim ~/.vimrc Error detected while processing /home/test/.vimrc: line 17: E518: Unknown option: termguicolors Press ENTER or type command to continue 从错误中可以看出,您的计算机上似乎没有
:PlugInstall
~$ vim ~/.vimrc
Error detected while processing /home/test/.vimrc:
line 17:
E518: Unknown option: termguicolors
Press ENTER or type command to continue
从错误中可以看出,您的计算机上似乎没有编译该功能 vim的版本。虽然我不清楚您是否有
set termguicolors
因为它是否是安装说明的一部分。
无论哪种方式,从:help:termguicolors
:
'termguicolors' 'tgc' E954
'termguicolors' 'tgc' boolean (default off)
global
{not available when compiled without the
+termguicolors feature}
您可以通过以下操作检查是否具有“termguicolors”功能:
:version
看看“termguicolors”前面是“+”还是
“-”在它前面(您没有)。错误是不言自明的:您正在设置Vim中不可用的选项 你有几种方法可以摆脱这种局面
- 根本没有设置
选项:help'termguicolors'
- 有条件地设置它:
请参阅if exists('+termguicolors') set termguicolors endif
:帮助存在()
- 安装包含
功能的Vim构建(并确保终端仿真器支持它)termguicolors
- 圭维姆
- TUI Vim,内置
功能和termguicolors
选项集,在合适的终端仿真器中termguicolors
- 在TUI Vim中,如果您使用终端模拟器
您应该在安装该插件之前阅读。已解决问题。 事实上,问题在于缺少颜色。 Ubuntu是运行7.4版的vim。。 自版本8起,termguicolors已添加到vim中。我必须更新vim。 谢谢大家
vim --version
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
vim --version
一般来说,插件的问题应该在其问题跟踪程序中讨论。在这种情况下,您的Vim没有所需的选项。感谢-'Vim--version'。很高兴它成功了-也许您可以接受/支持我的答案。干杯