From 00ce76f627ee73162c2f13caf6a44cd14c63d714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Iser?= Date: Tue, 28 Feb 2017 11:41:51 +0100 Subject: [PATCH] t_ut added to README --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b369cfa..6d2e738 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,11 @@ let g:airline_theme = 'codedark' #### 3.2) If you use a terminal with at least 256 colors **(e.g. GNOME Terminal, newest Bash for Windows)** -If your terminal supports 256 and more colors (see [this script](http://www.robmeerman.co.uk/unix/256colours) if you want to test your terminal), this colorscheme should automatically use closest available colors to match the palette. You **may need to set `t_Co` to 256** in your `.vimrc` before setting the colorscheme: +If your terminal supports 256 and more colors (see [this script](http://www.robmeerman.co.uk/unix/256colours) if you want to test your terminal), this colorscheme should automatically use closest available colors to match the palette. You **may need to set `t_Co` to 256** and [possibly also reset the `t_ut` value](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim) in your `.vimrc` before setting the colorscheme: ``` set t_Co=256 +set t_ut= colorscheme codedark ``` @@ -100,6 +101,14 @@ PuTTY should actually support 256 colors, try following [steps on StackOverflow] ## FAQ +### The background color in my terminal is wrong when there is no text! +Try resetting the `t_ut` value in your `.vimrc` as [described here](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim): +``` +set t_Co=256 +set t_ut= +colorscheme codedark +``` + ### What is and how to enable the conservative mode? If you don't like many colors and prefer the **conservative style of the standard Visual Studio**, you can try the conservative mode with reduced number of colors. To enable it, put the following line to your `.vimrc` *before* setting the scheme, like so: