From 9712a19ba9d514ad0053d9e169c89985f7915fc6 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Wed, 29 Dec 2010 21:23:35 +1000 Subject: [PATCH] Updated the readme --- README.markdown | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 0bd0540..a04013e 100644 --- a/README.markdown +++ b/README.markdown @@ -21,6 +21,13 @@ Alternatively if you have [Pathogen](http://www.vim.org/scripts/script.php?scrip ## Usage The default mapping to toggle the plugin is `ig` +### Setting custom indent colors +Here's an example of how to use custom colors instead of the ones the plugin automatically generates for you. Add this to your `.vimrc` file: + + let g:indent_guides_auto_colors = 0 + autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3 + autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4 + ### Terminal Vim At the moment Terminal Vim only has basic support. This means is that colors won't be automatically calculated based on your colorscheme. Instead some preset colors are used depending on whether `set background=` is set to `dark` or `light`. @@ -34,7 +41,7 @@ When `set background=light` is used, the following highlight colors will be defi hi IndentGuidesEven ctermbg=lightgrey hi IndentGuidesOdd ctermbg=white -If for some reason it's defining light highlight colors instead of dark ones or vice versa, the first thing you should check is that `set background=` is being set correctly for your colorscheme. Sometimes it's best to manually set the `background` value in your .vimrc, for example: +If for some reason it's defining light highlight colors instead of dark ones or vice versa, the first thing you should check is that `set background=` is being set correctly for your colorscheme. Sometimes it's best to manually set the `background` value in your `.vimrc`, for example: colorscheme desert256 set background=dark