From 73e138cc2b105a3334a0bdb79f3e62668e0fa822 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 4 Jun 2020 21:49:51 +0100 Subject: [PATCH] Trying another layout, more focussed on terminal users --- vim.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/vim.md b/vim.md index 275347e..4dbb3ec 100644 --- a/vim.md +++ b/vim.md @@ -1,11 +1,28 @@ # Basics +Inserting text, saving and closing the buffer + +`i` - Insert Text at the cursor +`a` - Append Text after the cursor +`I` - Insert text at the beginning of the line +`A` - Insert text at the end of the line + +`:w` - Write to file +`:q` - Quit file + +`Ctrl + ZZ` - Write and quit (`:wq`) +`Ctrl + ZQ` - Force quit (`:q!`) # Movement +These can also be used with other commands, such as dw to delete to next word # Search +`/` - Search forwards +`?` - Search backwards +`n` - Next search result +`N` - Previous search result # Replace/Change