articles/vi.md: update
This commit is contained in:
parent
9bdc5c337d
commit
1b8caab62e
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,9 @@ It has to be noted that `Home`, `End`, `PageUp/Down` and cursor keys also work.
|
|||
- (n) `K`: look for the identifier under the cursor in the man pages, really useful when you're doing C programming.
|
||||
- (n) `.`: repeat last action
|
||||
- `:help`, `:h`: Vim help pages
|
||||
- `:!`: execute shell command (in the shell specified by the `shell` varible)
|
||||
- `:r!`: execute shell command and paste the stdout of that command in the current buffer at where the cursor is
|
||||
- `:w !`: (not `:w!`) send buffer or current range to the specified shell command
|
||||
|
||||
### Macros
|
||||
- (n) `q`: start recording macro to register
|
||||
|
@ -166,6 +169,8 @@ It has to be noted that `Home`, `End`, `PageUp/Down` and cursor keys also work.
|
|||
- `30gg`: go to line 30
|
||||
- `G`: go to bottom of file
|
||||
- `30G`: same as `30gg`
|
||||
- `|`: go to column of the current line
|
||||
- `20|`: move to column 20
|
||||
- `gT`: move to previous tab
|
||||
- `gt`: move to next tab
|
||||
- `gf`: open the file path under the cursor in a new buffer
|
||||
|
|
Loading…
Add table
Reference in a new issue