Skip to content

Commit 7436b9c

Browse files
committed
fix small typos in ch12
1 parent 6e06f60 commit 7436b9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ch12_search_and_substitute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ First, capture both `food.txt` and `animal.txt` inside `:args`. Recall from earl
654654

655655
```
656656
:args *.txt captures all txt files in current location
657-
:args food.txt animal.txt captures only index and server js files
657+
:args food.txt animal.txt captures only given files
658658
:args **/*.txt captures every txt files
659659
:args ** captures everything
660660
```
@@ -703,7 +703,7 @@ q
703703
Here is the breakdown of the steps:
704704
- `:args animal.txt food.txt` lists the relevant files into the `:args` list.
705705
- `qq` starts the macro in the "q" register.
706-
- `:%s/dog/chicken/g` substitutes "dog" with "chicken on all lines in the current file.
706+
- `:%s/dog/chicken/g` substitutes "dog" with "chicken" on all lines in the current file.
707707
- `:wnext` writes (saves) the file then go to the next file on the `args` list. It's like running `:w` and `:next` at the same time.
708708
- `q` stops the macro recording.
709709
- `99@q` executes the macro ninety-nine times. Vim will stop the macro execution after it encounters the first error, so Vim won't actually execute the macro ninety-nine times.

0 commit comments

Comments
 (0)