vim: update formatting

This commit is contained in:
Rico Sta. Cruz 2017-10-11 15:21:43 +08:00
parent adb23a0b86
commit a418f067bd
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 20 additions and 11 deletions

31
vim.md
View File

@ -33,26 +33,32 @@ Getting started
### Navigating ### Navigating
| Shortcut | Description |
| --- | --- |
| `h` `j` `k` `l` | Arrow keys | | `h` `j` `k` `l` | Arrow keys |
| `^u` _/_ `^d` | Page up/page down | | `^u` _/_ `^d` | Page up/page down |
| --- | --- | {: .-shortcuts}
#### Words
| `b` _/_ `w` | Previous/next word | | `b` _/_ `w` | Previous/next word |
| `e` _/_ `ge` | Previous/next end of word | | `e` _/_ `ge` | Previous/next end of word |
| --- | --- | {: .-shortcuts}
#### Line
| `0` _(zero)_ | Start of line | | `0` _(zero)_ | Start of line |
| `^` | Start of line _(after whitespace)_ | | `^` | Start of line _(after whitespace)_ |
| --- | --- |
| `$` | End of line | | `$` | End of line |
{: .-shortcuts}
#### Document
| `gg` | First line | | `gg` | First line |
| `G` | Last line | | `G` | Last line |
| --- | --- |
| `:n` | Go to line `n` | | `:n` | Go to line `n` |
| `nG` | Go to line `n` | | `nG` | Go to line `n` |
{: .-shortcuts} {: .-shortcuts}
### Entering insert mode ### Editing
| Shortcut | Description | | Shortcut | Description |
| --- | --- | | --- | --- |
@ -65,7 +71,8 @@ Getting started
| `S` | Delete line and insert | | `S` | Delete line and insert |
| `C` | Delete until end of line and insert | | `C` | Delete until end of line and insert |
| --- | --- | | --- | --- |
| `R` | Replace | | `r` | Replace one character |
| `R` | Enter Replace mode |
{: .-shortcuts} {: .-shortcuts}
### Exiting insert mode ### Exiting insert mode
@ -91,12 +98,13 @@ Getting started
### Visual mode ### Visual mode
| Shortcut | Description |
| --- | --- |
| `v` | Enter visual mode | | `v` | Enter visual mode |
| `V` | Enter visual line mode | | `V` | Enter visual line mode |
| `^v` | Enter visual block mode | | `^v` | Enter visual block mode |
| --- | --- | {: .-shortcuts}
#### In visual mode
| `d` _/_ `x` | Delete selection | | `d` _/_ `x` | Delete selection |
| `s` | Replace selection | | `s` | Replace selection |
| `y` | Yank selection _(Copy)_ | | `y` | Yank selection _(Copy)_ |
@ -249,6 +257,7 @@ Uppercase ones are recursive (eg, `zO` is open recursively).
| `^A` | increment number | | `^A` | increment number |
| `^X` | decrement | | `^X` | decrement |
{: .-shortcuts}
### Windows ### Windows