Tips: cosmetic changes to colorschemes

Closes https://github.com/mhinz/vim-galore/issues/88.
This commit is contained in:
Marco Hinz 2016-06-09 14:19:05 +02:00
parent e274438704
commit 7db13688c0
2 changed files with 21 additions and 1 deletions

View File

@ -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)

View File

@ -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 :<command name>` to learn more