mirror of
https://github.com/Aroy-Art/Aroy-Art-Site.git
synced 2025-01-24 19:02:46 +01:00
Add: beginning of nvim cheat sheet blog post
This commit is contained in:
parent
21c258fc38
commit
cc8d04da0d
1 changed files with 59 additions and 0 deletions
59
content/blog/2024-12-26-my-neovim-cheat-sheet.md
Normal file
59
content/blog/2024-12-26-my-neovim-cheat-sheet.md
Normal file
|
@ -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! 🐈✨
|
||||||
|
|
Loading…
Reference in a new issue