Merge pull request #16 from ashfinal/patch-1

Update ch13_the_global_command.md
This commit is contained in:
Igor Irianto 2020-08-29 10:35:48 -05:00 committed by GitHub
commit d7a4f89ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,6 +447,12 @@ By the way, if you want to reduce multiple empty lines into no lines, instead of
:g/^$/,/./j
```
Or simpler:
```
:g/^$/-j
```
Your text is now reduced to:
```
@ -501,7 +507,7 @@ const arrayA = [
If you need to sort the elements inside the arrays, but not the arrays themselves, you can run this:
```
:g/\[/+1,/\v\]/-1sort
:g/\[/+1,/\]/-1sort
```
Result: