Insert Like a Pro·Lesson 5

Uppercase Commands

shift

Vim has a habit: the uppercase version of a command is usually a bigger, stronger, or reversed version of the lowercase one.

  • i inserts at the cursor. I inserts at the start of the line.
  • a appends after the cursor. A appends at the end of the line.
  • o opens a line below. O opens a line above.
  • w moves by word. W moves by WORD (more on that soon).

Try it out

1const total = price * quantity;
2if (total > limit) {
3 notify("over budget", total);
4}
NORMAL1:1