Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent-guides highlighting overrides CursorLine highlighting #69

Open
ntpeters opened this issue Feb 4, 2014 · 2 comments
Open

Indent-guides highlighting overrides CursorLine highlighting #69

ntpeters opened this issue Feb 4, 2014 · 2 comments

Comments

@ntpeters
Copy link

ntpeters commented Feb 4, 2014

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.

@mikekreeki
Copy link

Looks like this is not currently possible in Vim, see #21.

@dominikduda
Copy link

dominikduda commented May 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants