From 0ca267e8e07ee1b6e4a5b8d91652abbde219fa16 Mon Sep 17 00:00:00 2001 From: Jannis Date: Fri, 5 Jan 2018 11:07:23 +0100 Subject: [PATCH 1/2] Add window navigation commands --- vim.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vim.md b/vim.md index 92adb965d..867e0df75 100644 --- a/vim.md +++ b/vim.md @@ -58,6 +58,15 @@ Getting started | `nG` | Go to line `n` | {: .-shortcuts} +#### Window + +| `zz` | Center this line | +| `H` | Move to top of screen | +| `M` | Move to middle of screen | +| `L` | Move to bottom of screen | +{: .-shortcuts} + + ### Editing | Shortcut | Description | @@ -311,8 +320,6 @@ Do these in visual or normal mode. | --- | --- | | `.` | repeat last command | | `]p` | paste under the current indentation level | -| --- | --- | -| `zz` | Center this line | {: .-shortcuts} ### Command line From f1d1abd59dbb495bc786242373cf9f32c9f8f681 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 15 Mar 2018 17:44:48 +0800 Subject: [PATCH 2/2] Fix up some tables --- vim.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/vim.md b/vim.md index 867e0df75..ca2c15ad6 100644 --- a/vim.md +++ b/vim.md @@ -45,25 +45,31 @@ Getting started #### Line -| `0` _(zero)_ | Start of line | -| `^` | Start of line _(after whitespace)_ | -| `$` | End of line | +| Shortcut | Description | +| --- | --- | +| `0` _(zero)_ | Start of line | +| `^` | Start of line _(after whitespace)_ | +| `$` | End of line | {: .-shortcuts} #### Document -| `gg` | First line | -| `G` | Last line | -| `:n` | Go to line `n` | -| `nG` | Go to line `n` | +| Shortcut | Description | +| --- | --- | +| `gg` | First line | +| `G` | Last line | +| `:n` | Go to line `n` | +| `nG` | Go to line `n` | {: .-shortcuts} #### Window -| `zz` | Center this line | -| `H` | Move to top of screen | -| `M` | Move to middle of screen | -| `L` | Move to bottom of screen | +| Shortcut | Description | +| --- | --- | +| `zz` | Center this line | +| `H` | Move to top of screen | +| `M` | Move to middle of screen | +| `L` | Move to bottom of screen | {: .-shortcuts}