mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Usage: explain the use of true colors with tmux
This commit is contained in:
parent
b10f2a8f1e
commit
598482e4c7
17
README.md
17
README.md
@ -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
|
chances are your terminal emulator doesn't support true colors or your
|
||||||
colorcheme has no GUI colors defined.
|
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'`
|
Help: `:h 'termguicolors'`
|
||||||
|
|
||||||
# Tips
|
# Tips
|
||||||
|
Loading…
x
Reference in New Issue
Block a user