Update Readme.

This commit is contained in:
Lifepillar
2017-03-04 15:33:41 +01:00
parent fde07f5deb
commit 0558a39197

View File

@@ -9,33 +9,26 @@ the original [Solarized](https://github.com/altercation/vim-colors-solarized)
and the [Flattened](https://github.com/romainl/flattened) variant. It
removes only *some* of the bullshit. The color palette is exactly the same as
in Solarized, of course, although some highlight groups are defined slightly
differently (and better, in my opinion).
differently (for instance, I have tried to avoid red on blue).
The main reason for the existence of this project is that the original Solarized
theme does not define `guifg` and `guibg` in terminal Vim, which means that gui
colors cannot be used with versions of Vim supporting true-color terminals.
Another reason is that I do not understand why a color scheme should dynamically
compute constant values again and again. So, this version may be thought of as
a “compiled” Solarized (in fact, code from the original Solarized is used as
“source” code), and it loads >2.2x times as fast (not that you are likely to
notice the difference…).
This color scheme works **out of the box** if you use:
theme does not define `guifg` and `guibg` in terminal Vim, making it unsuitable
for versions of Vim supporting true-color terminals. Instead, this color scheme
works **out of the box** if you use:
- Vim ≥7.4.1799 with `termguicolors` set, or
- NeoVim,
**and** a true-color enabled terminal (e.g., [iTerm2](https://www.iterm2.com)).
Solarized 8 also works in MacVim, gVim, etc…: no configuration is needed.
For terminals not supporting true colors, the requirement is the same as for the
other color schemes: your 16 terminal ASCII colors must be set to the Solarized
palette. The ugly degraded 256-color variant has been removed.
For terminals not supporting true colors, your 16 terminal ASCII colors **must**
be set to the Solarized palette. The ugly degraded 256-color variant of the
original Solarized has been removed from Solarized 8.
In NeoVim, Solarized 8 defines a color palette for the [terminal
In NeoVim, Solarized 8 also defines the color palette for the [terminal
emulator](https://neovim.io/doc/user/nvim_terminal_emulator.html), as well as
specifying colors for the `TermCursor` and `TermCursorNC` highlight groups.
colors for the `TermCursor` and `TermCursorNC` highlight groups.
## Installation
@@ -54,7 +47,7 @@ There are actually 8 optimized color schemes:
- `solarized8_dark_low` and `solarized8_light_low`: low-contrast variant;
- `solarized8_dark_high` and `solarized8_light_high`: high-contrast variant;
- `solarized8_dark_flat` and `solarized8_light_flat`: “flat” variant (not
present in the original Solarized).
present in the original Solarized, see screenshots above).
To use any of them, put a line like the following in your `.vimrc`: