vim-italics sets vim to use underlines for italics

To update (replacing the current version) run webi vim-italics.


These are the files / directories that are created and/or modified with this install:


Cheat Sheet

vim uses background highlighting for italics by default.

Many Terminal color themes use the same color for background highlighting as for the cursor, which makes tracking the cursor difficult.

This swaps to italics to use underlines instead, which works in all themes.

How to install manually

Create the file ~/.vim/plugins/spell.vim. Add the same contents as

That will look something like this:

" use underlines for italics
" (keeps the cursor visible while moving over italic text in all themes)
highlight htmlItalic gui=italic ctermfg=214

You'll then need to update ~/.vimrc to source that plugin:

" Vim Italics: underlines for italics from
source ~/.vim/plugins/italics.vim


If you still can't see your cursor on italics, or things otherwise look wrong, try moving the source ~/.vim/plugins/italics.vim closer to the top of your config - above other things that may also be modifying the italics behavior.



+ " Vim Italics: underlines for italics from
+ source ~/.vim/plugins/italics.vim

  " ALE: reasonable defaults from
  source ~/.vim/plugins/ale.vim

- " Vim Italics: underlines for italics from
- source ~/.vim/plugins/italics.vim

Or, in some cases, moving it closer to the bottom may help.


Report an Issue Submit Installer Star on GitHub