From bf3a388f075628cc459d1f09ebe8ede1aaa13cc4 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Mon, 11 Jan 2021 19:40:48 +0100 Subject: [PATCH] Use gruvbox8 colorscheme and true colors. --- README.md | 5 ++--- config.vim | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 774c31d..fc0d279 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,8 @@ source ~/dotfiles/prompt.sh ## Configure vim -Install the jellybeans colorscheme, either by downloading `jellybeans.vim` into -`.vim/colors/`, or by installing a plugin manager and using it to install -jellybeans. +Install the [gruvbox8](https://github.com/lifepillar/vim-gruvbox8) colorscheme, +specifically the `gruvbox8_hard` variant. Then add the following to your `.vimrc`: diff --git a/config.vim b/config.vim index 899029d..ec010f2 100644 --- a/config.vim +++ b/config.vim @@ -21,8 +21,15 @@ set hlsearch " Jump to search results as user types search query. set incsearch +" Enable true colors. See also `:help xterm-true-color`. +let &t_8f = "\[38:2:%lu:%lu:%lum" +let &t_8b = "\[48:2:%lu:%lu:%lum" +set termguicolors + + " Use a nice color scheme. -colorscheme jellybeans +colorscheme gruvbox8_hard +set background=dark " Formatting options.