Bootstrap

结合 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 版本过旧,更新至最新版本
;