Update vim.md with "gvimdiff", "tab pages" and ajustment of the layout (#741)

* Update vim.md with "gvimdiff" command

* Update vim.md with a section for using tab pages

* VIM: Adjustement of the layout

Add table with Shortcut and Description for Calculator section.
Replace all of first letter of description by uppercase when it was lowercase.

* Update vim.md

* Update vim.md

* Update vim.md
This commit is contained in:
AntoineGoncalves 2018-11-07 22:35:25 +01:00 committed by chad d
parent 6892dc8615
commit 6a51d514e8
1 changed files with 61 additions and 29 deletions

66
vim.md
View File

@ -33,12 +33,16 @@ Getting started
### Navigating
| Shortcut | Description |
| --- | --- |
| `h` `j` `k` `l` | Arrow keys |
| `<C-U>` _/_ `<C-D>` | Page up/page down |
{: .-shortcuts}
#### Words
| Shortcut | Description |
| --- | --- |
| `b` _/_ `w` | Previous/next word |
| `e` _/_ `ge` | Previous/next end of word |
{: .-shortcuts}
@ -78,6 +82,18 @@ Getting started
| `L` | Move to bottom of screen |
{: .-shortcuts}
#### Tab pages
| Shortcut | Description |
| --- | --- |
| `:tabedit [file]` | Edit file in a new tab |
| `:tabfind [file]` | Open file if exists in new tab |
| `:tabclose` | Close current tab |
| `:tabs` | List all tabs |
| `:tabfirst` | Go to first tab |
| `:tablast` | Go to last tab |
| `:tabn ` | Go to next tab |
| `:tabp ` | Go to previous tab |
### Editing
@ -119,6 +135,8 @@ Getting started
### Visual mode
| Shortcut | Description |
| --- | --- |
| `v` | Enter visual mode |
| `V` | Enter visual line mode |
| `<C-V>` | Enter visual block mode |
@ -126,6 +144,8 @@ Getting started
#### In visual mode
| Shortcut | Description |
| --- | --- |
| `d` _/_ `x` | Delete selection |
| `s` | Replace selection |
| `y` | Yank selection _(Copy)_ |
@ -229,6 +249,13 @@ Text objects let you operate (with an *operator*) in or around text blocks (*obj
See [Operators](#operators) for other things you can do.
### Diff
| Shortcut | Description |
| --- | --- |
| `gvimdiff file1 file2 [file3]` | See differencies between files, in HMI |
Misc
----
@ -257,11 +284,11 @@ Uppercase ones are recursive (eg, `zO` is open recursively).
| Shortcut | Description |
| --- | --- |
| `[(` `[{` `[<` | previous `(` or `{` or `<` |
| `])` | next |
| `[(` `[{` `[<` | Previous `(` or `{` or `<` |
| `])` | Next |
| --- | --- |
| `[m` | previous method start |
| `[M` | previous method end |
| `[m` | Previous method start |
| `[M` | Previous method end |
{: .-shortcuts}
### Jumping
@ -271,13 +298,15 @@ Uppercase ones are recursive (eg, `zO` is open recursively).
| `<C-O>` | Go back to previous location |
| `<C-I>` | Go forward |
| --- | --- |
| `gf` | go to file in cursor |
| `gf` | Go to file in cursor |
{: .-shortcuts}
### Counters
| `<C-A>` | increment number |
| `<C-X>` | decrement |
| Shortcut | Description |
| --- | --- |
| `<C-A>` | Increment number |
| `<C-X>` | Decrement |
{: .-shortcuts}
### Windows
@ -303,12 +332,12 @@ Uppercase ones are recursive (eg, `zO` is open recursively).
| Shortcut | Description |
| --- | --- |
| `~` | toggle case (Case => cASE) |
| `gU` | uppercase |
| `gu` | lowercase |
| `~` | Toggle case (Case => cASE) |
| `gU` | Uppercase |
| `gu` | Lowercase |
| --- | --- |
| `gUU` | uppercase current line (also `gUgU`) |
| `guu` | lowercase current line (also `gugu`) |
| `gUU` | Uppercase current line (also `gUgU`) |
| `guu` | Lowercase current line (also `gugu`) |
{: .-shortcuts}
Do these in visual or normal mode.
@ -330,16 +359,17 @@ Do these in visual or normal mode.
| Shortcut | Description |
| --- | --- |
| `.` | repeat last command |
| `]p` | paste under the current indentation level |
| `.` | Repeat last command |
| `]p` | Paste under the current indentation level |
{: .-shortcuts}
### Command line
| Shortcut | Description |
| --- | --- |
| `<C-R><C-W>` | insert current word into the command line |
| `<C-R>"` | paste from " register |
| `<C-R><C-W>` | Insert current word into the command line |
| `<C-R>"` | Paste from " register |
| `<C-X><C-F>` | Auto-completion of path in insert mode |
{: .-shortcuts}
### Text alignment
@ -352,7 +382,9 @@ See `:help formatting`
### Calculator
<C-R>=128/2
| Shortcut | Description |
| --- | --- |
| `<C-R>=128/2` | Shows the result of the division : '64' |
Do this in insert mode.