From 7db13688c090ed10ba15d58db19fa04d8567ac38 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 9 Jun 2016 14:19:05 +0200 Subject: [PATCH] Tips: cosmetic changes to colorschemes Closes https://github.com/mhinz/vim-galore/issues/88. --- CHANGELOG.md | 1 + README.md | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4606ff9..8f3438d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file. - Tips: [Saner CTRL-L](README.md#saner-ctrl-l) - Tips: [Disable audible and visual bells](README.md#disable-audible-and-visual-bells) - Tips: [Faster keyword completion](README.md#faster-keyword-completion) +- Tips: [Cosmetic changes to colorschemes](README.md#cosmetic-changes-to-colorschemes) - Usage: [Getting help offline (alternative)](README.md#getting-help-offline-alternative) - Usage: [Editing remote files](README.md#editing-remote-files) - Usage: [Restore cursor position when opening file](README.md#restore-cursor-position-when-opening-file) diff --git a/README.md b/README.md index 220cb75..8e9b004 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ Twitter](https://twitter.com/_mhinz_). - [Reload a file on saving](#reload-a-file-on-saving) - [Smarter cursorline](#smarter-cursorline) - [Faster keyword completion](#faster-keyword-completion) +- [Cosmetic changes to colorschemes](#cosmetic-changes-to-colorschemes) #### [Commands](#commands-1) @@ -1017,7 +1018,10 @@ chances are that the colorscheme only defined colors for the GUI. I use [gruvbox](https://github.com/morhetz/gruvbox) for the GUI and [janah](https://github.com/mhinz/vim-janah) for the terminal. -More colorschemes: [here](#list-of-colorschemes-1) +Related: + +- [List of colorschemes](#list-of-colorschemes-1) +- [Cosmetic changes to colorschemes](#cosmetic-changes-to-colorschemes) #### Folding? @@ -1988,6 +1992,21 @@ set complete-=i " disable scanning included files set complete-=t " disable searching tags ``` +#### Cosmetic changes to colorschemes + +Always use a dark gray statusline, no matter what colorscheme is chosen: + +```vim +autocmd ColorScheme * highlight StatusLine ctermbg=darkgray cterm=NONE guibg=darkgray gui=NONE +``` + +The same, but only for the "lucius" colorscheme (check `:echo +color_name` which should be set by all valid colorschemes): + +```vim +autocmd ColorScheme lucius highlight StatusLine ctermbg=darkgray cterm=NONE guibg=darkgray gui=NONE +``` + ## Commands Useful commands that are good to know. Use `:h :` to learn more