Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 468 Bytes

tip2.md

File metadata and controls

23 lines (15 loc) · 468 Bytes

Tip2: Don't Repeat Yourself

$:

move the cursor to the end of the line.

a:

append after the current position.

A:

append at the end of the current line.(no matter where the cursor is at the time)

Example:

Goal: append a semicolon at the end of each line

$ --> a;Esc for each line. j$. --> for other lines.(. equals a;Esc)

Reduce Extraneous Movement

A;Esc --> j. (A instead of $a)

tip2