Repeat and reverse a character search
The technique
f| reaches the first bar and ; the next one. A comma would go back to the first.
Keys in this lesson
- ;
- Repeat the last f, t, F or T.
- ,
- Repeat it the other way.
- 2f|
- Jump to the second | on the line.
Before this lesson: Character boundaries.
More about this lesson
Choose a later occurrence or reverse direction without searching another line.
f and F land on a character; t and T stop beside it. ; repeats the original direction, and comma reverses it. A count such as 2f| chooses the second occurrence. These commands stay on the current line; search with / when you need another line.
Example
In north | centre | south, f| reaches the first bar; ; reaches the second; comma returns to the first. Inspect the character that an operator will preserve.
Use Reset to try again.