Tag Archives: Aubrey’s gVim Tips

Vim: select to the end of the line & select to the beginning of the line

[iframe src=”http://blip.tv/play/h61qgsmhGwA.html” width=”100%” height=”370″]

To select from your current cursor position to the end of the line, use:

(From Normal Mode/Command Mode): v (little v; will make cursor thin) $ (shift-4)

To select to the beginning of the line:

(From Normal Mode/Command Mode): v (little v; will make cursor thin) ^ (shift-6)

…and walla! Quick vim tip!

Aubrey’s gVim Tip: Understanding Visual Mode and Selecting Text

[iframe width=”100%” height=”349″ src=”http://www.youtube.com/embed/7DkPKn5GQdI”]

In this screencast I explain what it means for Aubrey’s gVim users that Select Mode has been entirely disabled. Because it is disabled I have found that you have to be aware that you are in Visual Mode/Command Mode/Normal Mode when you select text, which means you cannot just start typing your replacement text, you must issue a command.