Awesome
Local Indent Guide
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.
Usage
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 +cc
To change the highlight color:
highlight LocalIndentGuide ctermfg=5 ctermbg=0 cterm=inverse
Note that it is a foreground color and that the style is inverse. This
allows the highlight to be displayed while colorcolumn
is enabled.
License
MIT