Skip to content

Commit

Permalink
Updated the readme and help file (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelkane committed Dec 29, 2010
1 parent 9712a19 commit a7d8f3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Expand Up @@ -22,26 +22,26 @@ Alternatively if you have [Pathogen](http://www.vim.org/scripts/script.php?scrip
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:
Here's an example of how to define custom colors instead using 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`.
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 `background` is set to `dark` or `light`.

When `set background=dark` is used, the following highlight colors will be defined:

hi IndentGuidesEven ctermbg=darkgrey
hi IndentGuidesOdd ctermbg=black

When `set background=light` is used, the following highlight colors will be defined:
Alternatively, when `set background=light` is used, the following highlight colors will be defined:

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 incorrectly defining light highlight colors instead of dark ones or vice versa, the first thing you should check is that the `background` value 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
Expand Down
18 changes: 9 additions & 9 deletions doc/indent_guides.txt
Expand Up @@ -111,9 +111,9 @@ example:
5. TERMINAL VIM *indent-guides-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`.
won't be automatically calculated based on your colorscheme. Instead, some
preset colors are used depending on whether `background` is set to `dark` or
`light`.

When `set background=dark` is used, the following highlight colors will be
defined:
Expand All @@ -122,17 +122,17 @@ defined:
hi IndentGuidesOdd ctermbg=black
<

When `set background=light` is used, the following highlight colors will be
defined:
Alternatively, when `set background=light` is used, the following highlight
colors will be defined:
>
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 incorrectly defining light highlight colors instead of
dark ones or vice versa, the first thing you should check is that the
`background` value 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
Expand Down

0 comments on commit a7d8f3d

Please sign in to comment.