Skip to content

Commit

Permalink
Correction in "Current Line Navigation" topic
Browse files Browse the repository at this point in the history
`,` repeats the last search in the same line using the opposite direction. So `Fh` should search in the forward direction when used with `,`.
  • Loading branch information
tsadarsh authored Aug 9, 2022
1 parent 9dc6e5d commit e37cbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05_moving_in_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ n| Go the column n in the current line

You can do current line search with `f` and `t`. The difference between `f` and `t` is that `f` takes you to the first letter of the match and `t` takes you till (right before) the first letter of the match. So if you want to search for "h" and land on "h", use `fh`. If you want to search for first "h" and land right before the match, use `th`. If you want to go to the *next* occurrence of the last current line search, use `;`. To go to the previous occurrence of the last current line match, use `,`.

`F` and `T` are the backward counterparts of `f` and `t`. To search backwards for "h", run `Fh`. To keep searching for "h" in the same direction, use `;`. Note that `;` after a `Fh` searches backward and `,` after `fh` searches forward.
`F` and `T` are the backward counterparts of `f` and `t`. To search backwards for "h", run `Fh`. To keep searching for "h" in the same direction, use `;`. Note that `;` after a `Fh` searches backward and `,` after `Fh` searches forward.

```
f Search forward for a match in the same line
Expand Down

0 comments on commit e37cbba

Please sign in to comment.