Display a guide for the current line's indent level. This was taken from braceless.vim and shouldn't be used in conjunction with its highlighting, because that would just be silly.
Turn it on using the LocalIndentGuide command with one of the following options:
| Option | Description |
|---|---|
+hl |
Enable highlighting |
-hl |
Disable highlighting |
+cc |
Enable colorcolumn |
-cc |
Disable colorcolumn |
To enable it in any file type, add this to your vimrc:
autocmd FileType * LocalIndentGuide +hl +ccTo change the highlight color:
highlight LocalIndentGuide ctermfg=5 ctermbg=0 cterm=inverseNote that it is a foreground color and that the style is inverse. This
allows the highlight to be displayed while colorcolumn is enabled.
MIT
