Permalink
Browse files

Updated the readme

  • Loading branch information...
1 parent b9266fb commit 9712a19ba9d514ad0053d9e169c89985f7915fc6 @nathanaelkane committed Dec 29, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.markdown
View
@@ -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 `<Leader>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

0 comments on commit 9712a19

Please sign in to comment.