From 0b60d76899c7e4458437dc83b504c2af648da8eb Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 24 Aug 2017 22:28:58 +0800 Subject: [PATCH] Update --- Readme.md | 4 ++++ vim.md | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/Readme.md b/Readme.md index d0c061dbe..6df3738cb 100644 --- a/Readme.md +++ b/Readme.md @@ -10,6 +10,10 @@ H2's support these: {: .-three-column} {: .-left-reference} +H3's support these: + + {: .-prime} + Tables support these: {: .-shortcuts} diff --git a/vim.md b/vim.md index 07202fac1..54a450682 100644 --- a/vim.md +++ b/vim.md @@ -8,6 +8,24 @@ Getting started --------------- {: .-three-column} +### Exiting +{: .-prime} + +| Shortcut | Description | +| --- | --- | +| `:qa` | Close all files | +| `:qa!` | Close all files, abandon changes | +| --- | --- | +| `:w` | Save | +| `:wq` _/_ `:x` | Save and close file | +| --- | --- | +| `:q` | Close file | +| `:q!` | Close file, abandon changes | +| --- | --- | +| `ZZ` | Save and quit | +| `ZQ` | Quit without checking changes | +{: .-shortcuts} + ### Navigating | Shortcut | Description | @@ -24,6 +42,9 @@ Getting started | `$` | End of line | | `gg` | First line | | `G` | Last line | +| --- | --- | +| `:n` | Go to line `n` | +| `nG` | Go to line `n` | {: .-shortcuts} ### Entering insert mode