New Location

My website has moved to http://www.jasonwhaley.com. Please visit there for the latest and only remain here for legacy content.

Thursday, May 13, 2010

Periodically VIM - V (line base visual mode)

[Periodically VIM is my regular VIM tips and discoveries section, inspired by what was Daily VIM]

The Tip: V puts you in visual mode but works line-by-line instead of character by character.

Usage: With your cursor anywhere on a line or if you are already in character by character visual mode via v, type V and you'll be placed in visual mode on a line by line basis.

What Is It Good For?: If you need to select blocks of text for a whole line, to perform an action against that block and you didn't start at the beginning of the line, this is a useful, one-stroke way to select that whole line or lines in visual mode.

0 comments: