mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-10 05:04:13 +00:00
Correction in "Current Line Navigation" topic
`,` repeats the last search in the same line using the opposite direction. So `Fh` should search in the forward direction when used with `,`.
This commit is contained in:
parent
9dc6e5de03
commit
e37cbba1ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue