mirror of
https://github.com/Aroy-Art/Aroy-Art-Site.git
synced 2025-01-27 04:42:45 +01:00
1.8 KiB
1.8 KiB
title | date | lastmod | image | description | tags | draft |
---|---|---|---|---|---|---|
Purrfect Guide to Vim: A Cheat Sheet for Curious Kitties | 2024-12-26T15:07:36.192Z | 2024-12-26T18:18:20.602Z | 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! 🐈✨