From de274b785ef065666a4854379810694233c6efdf Mon Sep 17 00:00:00 2001 From: Josh Dick Date: Tue, 23 May 2017 17:36:55 -0400 Subject: [PATCH] README.md: Fix bug in sample code for overriding onedark.vim highlights. has("gui") checks that Vim was compiled with GUI support, while has("gui_running") checks that vim is running in GUI mode (the correct feature to check.) Fixes #103. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f992ea..43dae2f 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ For example, to remove the background color only when running in terminals (outs " `gui` is the hex color code used in GUI mode/nvim true-color mode " `cterm` is the color code used in 256-color mode " `cterm16` is the color code used in 16-color mode -if (has("autocmd") && !has("gui")) +if (has("autocmd") && !has("gui_running")) let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16" : "7" } autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " No `bg` setting end