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 and the word and quotation lessons.
More about this lesson
Know whether a character search lands on the character or next to it.
f finds a character to the right on the current line and t stops just before it. F searches to the left and T stops just after the character it finds. ; repeats the search and a comma repeats it in the other direction. None of them leave the current line. A count picks a later match, as in 2f,.
Example
On “red, blue, green”, f, from r lands on the first comma and t, lands on d. From g, F, lands on the comma before green and T, lands on the space after it. dt, from r deletes up to the comma and keeps the comma itself.
Use Start over to try again.