Find on Line
Single-line jumps that never disturb your row.
f{c} jumps to the next {c} on the line; F{c} jumps to the previous one. t{c} stops one character before; T{c} stops one character after. ; and , repeat in the same and opposite directions.
/ is overkill for jumping to a paren on the same line. f{c} jumps to the next {c} without ever leaving the line. F jumps backward. t ("till") stops one short. Then ; repeats the jump.
| Key | Note |
|---|---|
| f | |
| {c} |
| Key | Note |
|---|---|
| F | |
| {c} |
| Key | Note |
|---|---|
| t | |
| {c} |
| Key | Note |
|---|---|
| T | |
| {c} |
| Key | Note |
|---|---|
| ; |
| Key | Note |
|---|---|
| , |
Reference
| Key | Lands on | Type |
|---|---|---|
| f{c} | Next {c} on line | Inclusive |
| F{c} | Previous {c} on line | Exclusive |
| t{c} | Char before next {c} | Inclusive |
| T{c} | Char after previous {c} | Exclusive |
| ; | Repeat last find (same direction) | Same as original |
| , | Repeat last find (opposite) | โ |
Worked example โ f and t
Inline character search.
[missing screenshot search.find-on-line/frame_01.color.svg โ run python content/render_screenshots.py]
[missing screenshot search.find-on-line/frame_02.color.svg โ run python content/render_screenshots.py]
[missing screenshot search.find-on-line/frame_03.color.svg โ run python content/render_screenshots.py]
f lands ON the char; t lands JUST before. ; repeats; , reverses. Operator-friendly: dtx deletes up to but not including 'x'.
See also: Pattern Search, Delete, Change