This commit is contained in:
Anmol Pandita 2022-05-22 15:30:24 +05:30
parent 3c3db0c235
commit 92f54d6a45

View File

@ -2,11 +2,10 @@
title: "Vim - The Personal Man" title: "Vim - The Personal Man"
tags: tags:
- vim - vim
enableToc: true
--- ---
# Navigation 👻 ## Navigation 👻
## Exiting ### Exiting
| | | | | |
| --------------- | ------------------------------------- | | --------------- | ------------------------------------- |
| :q | to `quit` the file | | :q | to `quit` the file |
@ -14,7 +13,7 @@ enableToc: true
| :q! | to `trash` all changes and **quit** | | :q! | to `trash` all changes and **quit** |
| :wq | to `save` the changes and **quit** | | :wq | to `save` the changes and **quit** |
| ZZ (Shift + zz) | to `save` the changes and **quit** | | ZZ (Shift + zz) | to `save` the changes and **quit** |
## Movements ### Movements
| | | | | |
| ---------------------------------- | -------------------------------------------- | | ---------------------------------- | -------------------------------------------- |
| h j k l | ⃪ ↓ ↑ → | | h j k l | ⃪ ↓ ↑ → |
@ -30,7 +29,7 @@ enableToc: true
| % | to **matching parenthesis {} () []** | | % | to **matching parenthesis {} () []** |
| zz | re-center | | zz | re-center |
# Text manipulation ## Text manipulation
| | | | | |
| ------------------------------------ | ---------------------------------------------------- | | ------------------------------------ | ---------------------------------------------------- |
| x | **delete** *`at`* the cursor (→ in normal mode still) | | x | **delete** *`at`* the cursor (→ in normal mode still) |