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