Usage: explain the use of true colors with tmux

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

View File

@ -1953,6 +1953,23 @@ 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.
Many people use the terminal multiplexer
[tmux](https://github.com/tmux/tmux/wiki) which basically sits in between the
terminal emulator and Vim. To make tmux _forward_ the true color escape
sequences emitted by Vim, you have to put the following in the user's
`.tmux.conf`:
```
set-option -g default-terminal 'tmux-256color'
set-option -ga terminal-overrides ',xterm-256color:Tc'
```
- The first line should be the same for most people and denotes the `$TERM` to
be used _within_ tmux.
- The second line adds the tmux-specific `Tc` (true color) capability to the
other terminfo entries of `xterm-256color`. Obviously this assumes that the
user is using `TERM=xterm-256color` _outside_ of tmux.
Help: `:h 'termguicolors'`
# Tips