vim-indent-guides
vim-indent-guides copied to clipboard
Indent-guides highlighting overrides CursorLine highlighting
If the option set cursorline
is set in the vimrc, the current line is highlighted in vim. The highlight color of this can also be modified by issuing a hi CursorLine ctermbg=<desired color>
in your vimrc. The issue is that on lines with indentation highlighted by indent-guides, the highlighting of the current line is overwritten by indent-guides highlighting at the beginning of the line where the indentation is.
This is not an issue for set cursorcolumn
, as the highlighted column displays fine across all lines, including the portions highlighted by indent-guides.
I'm not sure, but this may be related to another reported issue ( #66 ). Not sure if it's possible to reduce the priority of highlighting of indent-guides to resolve issues like this or not.
If nothing else it would be cool if it could detect which line is currently selected, and change the tint of the indents on that line.
Looks like this is not currently possible in Vim, see #21.
Im pretty sure current line could just be excluded from highligting via regex.
matchadd('Boolean', getline('.'))
will higlight everything in the current line, overriding the indent higlight.
I am sure it is fixable using this fact.