Find a character boundary
The technique
t stops just before the character; f, would land on the comma itself.
Keys in this lesson
- f,
- Jump to the next comma on the line (any character works).
- t,
- Jump to just before it.
- F,
- Jump back to the previous comma.
- T,
- Jump back to just after it.
- ;
- Repeat the last f, t, F or T.
- ,
- Repeat it the other way.
Before this lesson: Compose an edit; word and quotation lessons.
More about this lesson
Predict whether a character search lands on or next to its destination.
f finds a character to the right on the current line; t stops just before it. F searches left; T stops just after the found character. ; repeats the original search and comma reverses its direction. They do not cross lines. A count chooses a later occurrence, such as 2f,.
Example
On “red, blue, green”, f, from r lands on the first comma; t, lands on d. From g, F, lands on the comma before green; T, lands on the following space. The target character survives a dt edit.
Use Reset to try again.