2010-12-07 04:59:41 -05:00
|
|
|
*indent_guides.txt* A plugin for visually displaying indent levels in Vim.
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
*indent-guides*
|
|
|
|
____ __ __ ______ _ __
|
|
|
|
/ _/____ ____/ /___ ____ / /_ / ____/__ __(_)____/ /___ _____
|
|
|
|
/ / / __ \/ __ // _ \/ __ \/ __/ / / __ / / / / // __ // _ \/ ___/
|
|
|
|
_/ / / / / / /_/ // __/ / / / /_ / /_/ // /_/ / // /_/ // __(__ )
|
|
|
|
/___//_/ /_/\__,_/ \___/_/ /_/\__/ \____/ \__,_/_/ \__,_/ \___/____/
|
|
|
|
|
|
|
|
|
|
|
|
A plugin for visually displaying indent levels in Vim.
|
|
|
|
|
|
|
|
Author: Nate Kane <nathanaelkane AT gmail DOT com>
|
|
|
|
Version: 1.0
|
|
|
|
Last Change: 05 Dec 2010
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
CONTENTS *indent-guides-contents*
|
|
|
|
|
|
|
|
1. Commands.................................. |indent-guides-commands|
|
|
|
|
2. Options................................... |indent-guides-options|
|
2010-12-05 05:01:34 -05:00
|
|
|
3. Mappings.................................. |indent-guides-mappings|
|
|
|
|
4. Changelog................................. |indent-guides-changelog|
|
|
|
|
5. License................................... |indent-guides-license|
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
==============================================================================
|
2010-12-05 04:46:46 -05:00
|
|
|
1. COMMANDS *indent-guides-commands*
|
2010-12-05 02:18:59 -05:00
|
|
|
|
2010-12-05 04:16:14 -05:00
|
|
|
:IndentGuidesToggle *:IndentGuidesToggle*
|
|
|
|
Toggles the indent guides on and off for all buffers.
|
|
|
|
|
2010-12-05 02:18:59 -05:00
|
|
|
:IndentGuidesEnable *:IndentGuidesEnable*
|
2010-12-05 04:16:14 -05:00
|
|
|
Enables the indent guides for all buffers.
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
:IndentGuidesDisable *:IndentGuidesDisable*
|
2010-12-05 04:16:14 -05:00
|
|
|
Disables the indent guides for all buffers.
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
==============================================================================
|
2010-12-05 04:46:46 -05:00
|
|
|
2. OPTIONS *indent-guides-options*
|
2010-12-05 02:18:59 -05:00
|
|
|
|
2010-12-07 04:41:05 -05:00
|
|
|
*'indent_guides_indent_levels'*
|
2010-12-07 08:03:11 -05:00
|
|
|
Use this option to control how many indent levels to display guides for.
|
|
|
|
Default: 20. Values: integer.
|
2010-12-05 02:18:59 -05:00
|
|
|
>
|
2010-12-07 08:03:11 -05:00
|
|
|
let g:indent_guides_indent_levels = 50
|
|
|
|
<
|
|
|
|
|
|
|
|
*'indent_guides_auto_colors'*
|
|
|
|
Use this option to control whether or not the plugin automatically calculates
|
|
|
|
the highlight colors. Will use the current colorscheme's background color as a
|
|
|
|
base color.
|
|
|
|
Default: 1. Values: 0 or 1.
|
|
|
|
>
|
|
|
|
let g:indent_guides_auto_colors = 1
|
|
|
|
<
|
|
|
|
|
|
|
|
*'indent_guides_auto_colors_change_percent'*
|
2010-12-07 08:05:01 -05:00
|
|
|
Use this option to control the percent at which the highlight colors will be
|
|
|
|
lightened or darkened.
|
2010-12-07 08:03:11 -05:00
|
|
|
Default: 0.10. Values: between 0 and 1.
|
|
|
|
>
|
2010-12-07 08:05:01 -05:00
|
|
|
let g:indent_guides_auto_colors_change_percent = 0.10
|
2010-12-05 02:18:59 -05:00
|
|
|
<
|
|
|
|
|
|
|
|
==============================================================================
|
2010-12-05 05:01:34 -05:00
|
|
|
3. MAPPINGS *indent-guides-mappings*
|
|
|
|
|
|
|
|
The default mapping for toggling indent guides is <Leader>ig. You can easy map
|
|
|
|
it to other keys. For example:
|
|
|
|
>
|
|
|
|
:nmap <Leader>ig :IndentGuidesToggle<CR>
|
|
|
|
<
|
|
|
|
|
|
|
|
You can also map some other commands that are not mapped by default. For
|
|
|
|
example:
|
|
|
|
>
|
|
|
|
:nmap <Leader>ie :IndentGuidesEnable<CR>
|
|
|
|
:nmap <Leader>id :IndentGuidesDisable<CR>
|
|
|
|
<
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
4. CHANGELOG *indent-guides-changelog*
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
1.0~
|
|
|
|
* First public version.
|
|
|
|
|
|
|
|
==============================================================================
|
2010-12-05 05:01:34 -05:00
|
|
|
5. LICENSE *indent-guides-license*
|
2010-12-05 02:18:59 -05:00
|
|
|
|
|
|
|
The MIT Licence
|
|
|
|
http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
|
|
|
Copyright (c) 2010 Nate Kane
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
|
|
|
|
vim:tw=78:ts=2:ft=help:norl:
|
|
|
|
|