结合 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 版本过旧,更新至最新版本
相关推荐
物联网老王5 小时前
Ubuntu Linux Cursor 安装与使用一
linux·运维·ubuntu
死也不注释6 小时前
【Unity 编辑器工具开发:GUILayout 与 EditorGUILayout 对比分析】
unity·编辑器·游戏引擎
一位摩羯座DBA7 小时前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组7 小时前
CentOS配置网络
linux·网络·centos
weixin_307779137 小时前
Hive集群之间迁移的Linux Shell脚本
大数据·linux·hive·bash·迁移学习
漫步企鹅8 小时前
【蓝牙】Linux Qt4查看已经配对的蓝牙信息
linux·qt·蓝牙·配对
cui_win8 小时前
【网络】Linux 内核优化实战 - net.core.flow_limit_table_len
linux·运维·网络
梦在深巷、8 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
冰橙子id9 小时前
linux系统安全
linux·安全·系统安全
stark张宇9 小时前
VMware 虚拟机装 Linux Centos 7.9 保姆级教程(附资源包)
linux·后端