mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-13 22:47:07 +00:00
Merge pull request #112 from victorhck/master
ch21: some suggestions (maybe typos?)
This commit is contained in:
commit
9b7b31b167
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ If you want to make a list of all Javascript files that start with "a" in the cu
|
|||
:args a*.js
|
||||
```
|
||||
|
||||
The wildcard matches one or more of any character in the current directory, but what if you need to search recursively in any directory? You can use the double wildcard (`**`). To get all Javascript files inside the directories within your current location, run:
|
||||
The wildcard matches one or more of any filename character in the current directory, but what if you need to search recursively in any directory? You can use the double wildcard (`**`). To get all Javascript files inside the directories within your current location, run:
|
||||
|
||||
```
|
||||
:args **/*.js
|
||||
|
@ -53,7 +53,7 @@ The arg list is useful if you need to target a specific type of file or a few fi
|
|||
:argdo %s/donut/pancake/g | update
|
||||
|
||||
```
|
||||
If you run the `args` aggregate command again, it will replace the previous list. For example, if you previously ran:
|
||||
If you run the `args` command again, it will replace the previous list. For example, if you previously ran:
|
||||
|
||||
```
|
||||
:args file1 file2 file3
|
||||
|
@ -65,7 +65,7 @@ Assuming these files exist, you now have a list of `file1`, `file2`, and `file3`
|
|||
:args file4 file5
|
||||
```
|
||||
|
||||
Your initial list of `file1`, `file2`, and `file3` is replaced with `file4` and `file5`. If you have `file1`, `file2`, and `file3` in your arg list and you want to *add* `file4` and `file5` into your initial files list, use the `:arga` argument. Run:
|
||||
Your initial list of `file1`, `file2`, and `file3` is replaced with `file4` and `file5`. If you have `file1`, `file2`, and `file3` in your arg list and you want to *add* `file4` and `file5` into your initial files list, use the `:arga` command. Run:
|
||||
|
||||
```
|
||||
:arga file4 file5
|
||||
|
|
Loading…
Reference in a new issue