You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***NEW:**Highlight support for files with a mixture of tab and space indent styles.
14
+
* Highlight support for files with a mixture of tab and space indent styles.
15
15
16
16
## Requirements
17
17
* Vim 7.2+
18
18
19
19
## Installation
20
-
To install the plugin just copy `autoload`, `plugin`, `doc` directories into your `.vim` directory.
20
+
To install the plugin copy `autoload`, `plugin`, `doc` directories into your `.vim` directory.
21
21
22
-
Alternatively if you have [Pathogen](http://www.vim.org/scripts/script.php?script_id=2332) installed, just clone this repo into a subdirectory of your `.vim/bundle` directory like so:
22
+
### Pathogen
23
+
If you have [Pathogen](http://www.vim.org/scripts/script.php?script_id=2332) installed, clone this repo into a subdirectory of your `.vim/bundle` directory like so:
If you have [Vundle](https://github.com/VundleVim/Vundle.vim) installed, add the following line to your `~/.vimrc` in the appropriate spot (see the Vundle.vim README for help):
30
+
31
+
Plugin 'nathanaelkane/vim-indent-guides'
32
+
33
+
and then run the following command from inside Vim:
34
+
35
+
:PluginInstall
36
+
27
37
## Usage
28
-
The default mapping to toggle the plugin is `<Leader>ig`
38
+
The default mapping to toggle the plugin is `<Leader>ig`.
39
+
40
+
You can also use the following commands inside Vim:
41
+
42
+
:IndentGuidesEnable
43
+
:IndentGuidesDisable
44
+
:IndentGuidesToggle
45
+
46
+
If you would like to have indent guides enabled by default, you can add the following to your `~/.vimrc`:
47
+
48
+
let g:indent_guides_enable_on_vim_startup = 1
29
49
30
50
### gVim
31
51
**This plugin should work with gVim out of the box, no configuration needed.** It will automatically inspect your colorscheme and pick appropriate colors.
0 commit comments