How do I Change my Vim highlight line to not be an underline?

How do I Change my Vim highlight line to not be an underline?

How do I change my Vim highlight line to not be an underline? In some colorschemes the current line highlighting changes background, in others, like Desert, the current line is underlined. I want to change the current line highlighting in Desert to use a different background color instead of underlining. How can I do that?

How to set cursorline highlight correctly in Vim?

If anyone has .vimrc setup like this, you can add the following to .vimrc to set cursorline highlight correctly:- A bit of explanation as to why this works. Along with various buffer and window information, mksession saves the current colorscheme name.

How to highlight unreadable highlighted text during search?

What you want is called cterm. cterm=reverse actually swaps foreground and background color. So if you highlight Normal text with Search it effectively becomes ctermfg=3 ctermbg=fg. However, it will be different if the “searched” word has some syntax highlighting.

When do I reset the Vim highlight setting?

This is restored during program startup through session restoration. However, since the session restoration is typically done after .vimrc has been run (typically using a function invoked through ‘autocmd VimEnter *’), the cursorline highlight setting in .vimrc is reset by the default for the restored colorscheme.

Why is Vim drawing underlines on the place of tabs and how?

Without any specific regularity my vim displays underlines on the place of tabs (see below). Sometimes it also happens to the text: I type and it’s underlined. What could be a reason? This is likely due to the fact that you are editing an html file and the text near the underline is inside of an tag.

How to underline the cursor in vimrc?

CursorLine gui=underline cterm=underline augroup END (Note: The autogroup is there so that the autocommand is reset whenever your vimrc file is read. That why, after re-sourcing your vimrc the same event won’t accumulate multiple times).