From cc8d04da0db97864af82fb760047f6babf3f03c3 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 9 Jan 2025 22:01:14 +0100 Subject: [PATCH] Add: beginning of nvim cheat sheet blog post --- .../blog/2024-12-26-my-neovim-cheat-sheet.md | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 content/blog/2024-12-26-my-neovim-cheat-sheet.md diff --git a/content/blog/2024-12-26-my-neovim-cheat-sheet.md b/content/blog/2024-12-26-my-neovim-cheat-sheet.md new file mode 100644 index 0000000..561bdb5 --- /dev/null +++ b/content/blog/2024-12-26-my-neovim-cheat-sheet.md @@ -0,0 +1,59 @@ +--- +title: "Purrfect Guide to Vim: A Cheat Sheet for Curious Kitties" +date: 2024-12-26T15:07:36.192Z +lastmod: 2024-12-26T18:18:20.602Z +image: "" +description: "" +tags: [] +draft: true +--- + +Hello there, fellow feline enthusiasts and keyboard warriors! 🐾 Are you ready to embark on a whisker-tickling adventure into the world of Vim? Whether you're a curious kitten or a seasoned mouser, this cheat sheet will have you purring with efficiency in no time. Let's dive into the pawsitive power of Vim! + +{{< toc >}} + +## Basic Commands + +- **i** - *Paw into insert mode* (start typing your heart out) +- **Esc** - *Escape the typing frenzy* (back to normal mode) +- **:w** - *Whisker-save your work* (write changes to file) +- **:q** - *Quietly exit* (leave Vim) +- **:wq** - *Save and skedaddle* (write and quit) + +### Navigation + +- **h, j, k, l** - *Prowl through the text* (left, down, up, right) +- **gg** - *Swiftly to the top* (beginning of file) +- **G** - *Gracefully to the bottom* (end of file) +- **^** - *Pounce to start of line* +- **$** - *Leap to end of line* + +## Editing + +- **x** - *Nibble the character* (delete single character) +- **dd** - *Devour the whole line* (delete line) +- **yy** - *Yarn that line* (copy line) +- **p** - *Paw it back* (paste) + +### Searching and Replacing + +- **?search** - *Backtrack the scent* (search backward) +- **n** - *Next whisker-twitch* (repeat search in same direction) +- **:%s/old/new/g** - *Swap old with new* (replace all instances) + +### Undo and Redo + +- **Ctrl + r** - *Redo the frolic* (redo change) + +### Exiting Vim + +- **:q!** - *Quick exit, no regrets* (quit without saving) +- **ZZ** - *Doze off with a save* (save and exit) + +## Bonus Tips + +- **:help** - *Call for a friendly meow* (open help documentation) +- **:!command** - *Let the claws out* (run a shell command) + +Happy coding, and may your Vim journey be as graceful as a cat's leap! 🐈✨ +