From ba187f34efef97670be48d289f2c745fac540b30 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Sat, 17 Jan 2009 02:07:21 -0500 Subject: [PATCH] Add docs on how to skip CSApprox for a scheme --- doc/CSApprox.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/CSApprox.txt b/doc/CSApprox.txt index a064653..aade8cb 100644 --- a/doc/CSApprox.txt +++ b/doc/CSApprox.txt @@ -254,6 +254,16 @@ g:CSApprox_hook_{scheme}_post *csapprox-hooks* > let g:CSApprox_hook_desert_post = ['hi Normal ctermbg=NONE ctermfg=NONE', \ 'hi NonText ctermbg=NONE ctermfg=NONE' ] +< + One final example: If you want CSApprox to be active for nearly all + colorschemes, but want one or two particular schemes to be ignored, you + can take advantage of the CSApprox logic that skips over any color scheme + that is already high color by setting a color to a number above 255. Note + that most colors greater than 15 will work, but some will not - 256 should + always work. For instance, you can prevent CSApprox from modifying the + colors of the zellner colorscheme like this: +> + let g:CSApprox_hook_zellner_pre = 'hi _FakeGroup ctermbg=256' < NOTE: Any characters that would stop the string stored in g:colors_name from being a valid variable name will be removed before the