Usage: add section for true colors

This commit is contained in:
Marco Hinz 2018-01-20 15:16:16 +01:00
parent a3309fc00c
commit b10f2a8f1e
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -75,6 +75,7 @@
- [Running external programs and using filters](#running-external-programs-and-using-filters)
- [Cscope](#cscope)
- [MatchIt](#matchit)
- [True colors](#true-colors)
### [Tips](#tips-1)
@ -1938,6 +1939,22 @@ Help:
:h b:match_words
```
## True colors
Using true colors in a terminal emulator means being able to use 24 bits for RGB
colors. That makes 16777216 (2^24) colors instead of the usual 256.
As explained [here](#colorschemes), colorschemes can actually be _two_
colorschemes by having definitions for terminals (xterm) and for GUIs (gvim).
This made sense before terminal emulators learned about true colors.
After `:set termguicolors`, Vim starts emitting escape sequences only understood
by a terminal emulator that supports true colors. When your colors look weird,
chances are your terminal emulator doesn't support true colors or your
colorcheme has no GUI colors defined.
Help: `:h 'termguicolors'`
# Tips
## Saner behavior of n and N