Highlight the whole current line

highlight, navigation, vim

Solution

To highlight the current line use

:set cursorline

To highlight the current column use

:set cursorcolumn

The visual appearance of this can be modified. Have a look around `:help hl-CursorLine` or `hl-CursorColumn`.

Problem

What is the best way to highlight the whole current line in Vim? In some IDEs I am able to set some sort of 20% opacity of the line I am editing, this is great to find where I am rather quickly.

Original source