Merge pull request #104 from victorhck/master

fix examples syntax
pull/105/head
Igor Irianto 3 years ago committed by GitHub
commit 46300fed5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ Let's go through each of them.
The syntax to read the STDOUT of an external command into the current buffer is:
```
:r !{cmd}
:r !cmd
```
`:r` is Vim's read command. If you use it without `!`, you can use it to get the content of a file. If you have a file `file1.txt` in the current directory and you run:
@ -63,7 +63,7 @@ Now the STDOUT from running `cat file1.txt` will be inserted after line 10.
The command `:w`, in addition to saving a file, can be used to pass the text in the current buffer as the STDIN for an external command. The syntax is:
```
:w !{cmd}
:w !cmd
```
If you have these expressions:

@ -15,7 +15,7 @@ There are 4 different commands you can use to enter the command-line mode:
You can enter the command-line mode from the normal mode or the visual mode.
To leave the command-line mode, you can use `<Esc>`, `Ctrl-c, or Ctrl-[`.
To leave the command-line mode, you can use `<Esc>`, `Ctrl-C, or Ctrl-[`.
*Other literatures might refer the "Command-line command" as "Ex command" and the "External command" as "filter command" or "bang operator".*
@ -31,7 +31,7 @@ While in the command-line mode, you can move to the left or to the right, one ch
If you need to move word-wise, use `Shift-Left` or `Shift-Right` (in some OS, you might have to use `Ctrl` instead of `Shift`).
To go to the start of the line, use `Ctrl-b`. To go to the end of the line, use `Ctrl-e`.
To go to the start of the line, use `Ctrl-B`. To go to the end of the line, use `Ctrl-E`.
Similar to the insert mode, inside the command-line mode, you have three ways to delete characters:
@ -40,7 +40,7 @@ Ctrl-H Delete one character
Ctrl-W Delete one word
Ctrl-U Delete the entire line
```
Finally, if you want to edit the command like you would a normal textfile use `Ctrl-f`.
Finally, if you want to edit the command like you would a normal textfile use `Ctrl-F`.
This also allows you to search through the previous commands, edit them and rerun them by pressing `<Enter>` in "command-line editing normal mode".

Loading…
Cancel
Save