From 9cc370f9847192189bed4d0c359d63850dc0e36f Mon Sep 17 00:00:00 2001 From: Andrei Curelaru Date: Wed, 4 Jan 2023 10:45:26 +0100 Subject: [PATCH] Added 2 movement shortcuts (#1903) * Added 2 movement shortcuts In the Document section, "Move down/up by n lines" * Update vim.md Co-authored-by: Rico Sta. Cruz --- vim.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vim.md b/vim.md index a1cdfc73e..ba3f46424 100644 --- a/vim.md +++ b/vim.md @@ -66,12 +66,14 @@ Getting started #### Document -| Shortcut | Description | -| --- | --- | -| `gg` | First line | -| `G` | Last line | -| `:n` | Go to line `n` | -| `nG` | Go to line `n` | +| Shortcut | Description | +| --- | --- | +| `gg` | First line | +| `G` | Last line | +| `:{number}` | Go to line `{number}` | +| `{number}G` | Go to line `{number}` | +| `{number}j` | Go down `{number}` lines | +| `{number}k` | Go up `{number}` lines | {: .-shortcuts} #### Window