Sometimes it can be helpful to highlight the current line in vim, for example when reviewing code in a group discussion or presentation.

One way is to enter visual mode by typing v and then using navigation keys to highlight the line. However this adds steps and can’t always be done cleanly.

There is a better method, and that is by typing shift + v. vim will then enter ‘VISUAL LINE’ mode, and the current line will be highlighted. In this mode additional commands may be issued, such as > to indent, etc.

To exit visual line mode, enter V (shift + v) again.