VIM Highlight the whole current line

Helmut Granda picture Helmut Granda · Jan 5, 2012 · Viewed 19.3k times · Source

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.

Answer

Benjamin Bannier picture Benjamin Bannier · Jan 5, 2012

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.