diff runtime/optwin.vim @ 9042:21bd2230c5cd v7.4.1806

commit https://github.com/vim/vim/commit/8e3d1b6326c103cc92f8d07b1161ee5172acf201 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 30 15:17:19 2016 +0200 patch 7.4.1806 Problem: 'termguicolors' option missing from the options window. Solution: Add the entry.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Apr 2016 15:30:06 +0200
parents b4be6f6610a0
children 057fb9d0191b
line wrap: on
line diff
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -1,7 +1,7 @@
 " These commands create the option window.
 "
 " Maintainer:	Bram Moolenaar <Bram@vim.org>
-" Last Change:	2016 Apr 21
+" Last Change:	2016 Apr 30
 
 " If there already is an option window, jump to that one.
 if bufwinnr("option-window") > 0
@@ -412,6 +412,10 @@ call append("$", "highlight\twhich highl
 call <SID>OptionG("hl", &hl)
 call append("$", "hlsearch\thighlight all matches for the last used search pattern")
 call <SID>BinOptionG("hls", &hls)
+if has("termtruecolor")
+  call append("$", "termguicolors\tuse GUI colors for the terminal")
+  call <SID>BinOptionG("tgc", &gcol)
+endif
 if has("syntax")
   call append("$", "cursorcolumn\thighlight the screen column of the cursor")
   call append("$", "\t(local to window)")