mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-26 20:40:18 +00:00
commit
b441c685a8
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ To substitute the "let" into "const" on lines three to five, you can do:
|
||||||
|
|
||||||
Here are some range variations you can pass:
|
Here are some range variations you can pass:
|
||||||
|
|
||||||
- `:,3/let/const/` - if nothing is given before the comma, it represents the current line. Substitute from current line to line 3.
|
- `:,3s/let/const/` - if nothing is given before the comma, it represents the current line. Substitute from current line to line 3.
|
||||||
- `:1,s/let/const/` - if nothing is given after the comma, it also represents the current line. Substitute from line 1 to current line.
|
- `:1,s/let/const/` - if nothing is given after the comma, it also represents the current line. Substitute from line 1 to current line.
|
||||||
- `:3s/let/const/` - if only one value is given as range (no comma), it does substitution on that line only.
|
- `:3s/let/const/` - if only one value is given as range (no comma), it does substitution on that line only.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue