navigation

0 / $

0 jumps to the very first column of the line; $ jumps to the last character. Use ^ (bonus) if you want the first non-blank character instead of column zero.

0  $  (normal / visual mode)

Variations

Keystroke Effect
^ First NON-BLANK character on line (respects indentation)
g_ Last non-blank character (skips trailing whitespace)
d$ Delete from cursor to end of line (same as D)
y0 Yank from cursor back to start of line

Examples

0

Jump to column 1 of current line

$

Jump to end of line

c$

Change from cursor to end of line

Gotcha

0 takes no count — it always goes to column zero. $ with a count uses [count-1] as the offset — 2$ moves to the end of the NEXT line, not two lines down, which surprises most people.

Related

← All Vim commands · Vim cheat sheet