Home

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.

local-indent

Usage

Turn it on using the LocalIndentGuide command with one of the following options:

OptionDescription
+hlEnable highlighting
-hlDisable highlighting
+ccEnable colorcolumn
-ccDisable 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