结合 vim-plug 安装并使用 Gruvbox 主题教程

前置工作:vim-plug的安装

vim-plug的自动安装与基本使用介绍-CSDN博客

安装 Gruvbox

在 .vimrc 的plug列表中添加以下代码

复制代码
call plug#begin()

Plug 'morhetz/gruvbox'

call plug#end()

在vim中使用命令

复制代码
:PlugInstall

配置 Gruvbox

官方文档 Configuration · morhetz/gruvbox Wiki

复制代码
In order to change these options, 
type let g:gruvbox_(option) = '(value)' in your .vimrc 
(with quotes) before the colorscheme gruvbox statement.

例如我们想要设置深色模式下的对比度

对比度强

对比度弱

配置的相关效果图可以在首页找(很想吐槽gruvbox的manual......)

morhetz/gruvbox: Retro groove color scheme for Vim

更多选项效果则在

Configuration · morhetz/gruvbox Wiki

注意 colorscheme 务必留在设置之后

错误:Cannot find color shcme 'gruvbox'

  1. 未运行 :PlugInstall
  2. Vim 版本过旧,更新至最新版本
相关推荐
weixin_4569042717 分钟前
CentOS与Ubuntu的详细区别
linux·ubuntu·centos
zfxwasaboy24 分钟前
linux Kbuild详解关于fixdep、Q、quiet、escsq
android·linux·ubuntu
极客柒29 分钟前
Unity 塔防自用可视化路点寻路编辑器
unity·编辑器·游戏引擎
十五年专注C++开发1 小时前
cargs: 一个轻量级跨平台命令行参数解析库
linux·c++·windows·跨平台·命令行参数解析
三坛海会大神5552 小时前
Linux服务器资源自动监控与报警脚本详解
linux·运维·服务器
向qian看_-_7 小时前
Linux 使用pip报错(error: externally-managed-environment )解决方案
linux·python·pip
yaoxtao8 小时前
java.nio.file.InvalidPathException异常
java·linux·ubuntu
2501_9200470310 小时前
git在Linux中的使用
linux·git·elasticsearch
程序设计实验室10 小时前
在鸡哥14x上安装Linux:Fedora 42 上手体验
linux
UNbuff_011 小时前
Linux bzip2 命令使用说明
linux·运维·服务器