Skip to content

tweekmonster/local-indent.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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:

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

About

Display a guide for the current line's indent level.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors