mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-22 18:43:02 +00:00
fix typos and errors
This commit is contained in:
parent
fe86583413
commit
f15f741bca
1 changed files with 5 additions and 5 deletions
|
@ -97,9 +97,9 @@ $ Go to the last char in the current line
|
|||
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 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 `,`.
|
||||
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
|
||||
|
@ -241,8 +241,8 @@ Often you know that a phrase exists inside a file. You can use search navigation
|
|||
```
|
||||
/ Search forward for a match
|
||||
? Search backward for a match
|
||||
n Repeat last search (same direction of previous search)
|
||||
N Repeat last search (opposite direction of previous search)
|
||||
n Repeat last search in same direction of previous search
|
||||
N Repeat last search in opposite direction of previous search
|
||||
```
|
||||
|
||||
Suppose you have this text:
|
||||
|
@ -286,7 +286,7 @@ ma Mark position with mark "a"
|
|||
|
||||
There is a difference between marking with lowercase letters (a-z) and uppercase letters (A-Z). Lowercase alphabets are local marks and uppercase alphabets are global marks (sometimes known as file marks).
|
||||
|
||||
Let's talk about local marks. Each buffer can have its own set of local marks. If I have two files opened, I can set a mark "a" (`ma`) in the first file and another mark "a" (`ma)` in the second file.
|
||||
Let's talk about local marks. Each buffer can have its own set of local marks. If I have two files opened, I can set a mark "a" (`ma`) in the first file and another mark "a" (`ma`) in the second file.
|
||||
|
||||
Unlike local marks where you can have a set of marks in each buffer, you only get one set of global marks. If you set `mA` inside `myFile.txt`, the next time you run `mA` in a different file, it will overwrite the first "A" mark. One advantage of global marks is you can jump to any global mark even if you are inside a completely different project. Global marks can travel across files.
|
||||
|
||||
|
|
Loading…
Reference in a new issue