This commit is contained in:
Anmol Pandita 2022-06-02 22:04:24 +05:30
parent da04e7f81f
commit 83fa7f97fc
4 changed files with 41 additions and 24 deletions

View File

@ -0,0 +1,16 @@
---
title: "Vim - Exiting"
tags:
- vim
- exiting
---
| | |
| --------------- | ------------------------------------- |
| :q | to `quit` the file |
| :e! | to `trash` all changes and **reload** |
| :q! | to `trash` all changes and **quit** |
| :wq | to `save` the changes and **quit** |
| ZZ (Shift + zz) | to `save` the changes and **quit** |
| | |

View File

@ -6,30 +6,10 @@ tags:
## Navigation 👻 ## Navigation 👻
### Exiting ![[vim.exiting]]
| | |
| --------------- | ------------------------------------- |
| :q | to `quit` the file | ![[vim.movements]]
| :e! | to `trash` all changes and **reload** |
| :q! | to `trash` all changes and **quit** |
| :wq | to `save` the changes and **quit** |
| ZZ (Shift + zz) | to `save` the changes and **quit** |
| | |
### Movements
| | |
| ---------------------------------- | -------------------------------------------- |
| h j k l | ⃪ ↓ ↑ → |
| 0 | to the `start` of the line |
| $ (Shit + 4) | to the `end` of the line |
| e | to `end` of word |
| w |`forward` one **word** |
| W |`forward` one **Word** |
| b |`backward` one **word** |
| B |`backword` one **Word** |
| *<`number`>* wW / e / bB / h j k l | Move *<`number`>* times *<`text objects`>* |
| *<`number`>* G | to **specific line** |
| % | to **matching parenthesis {} () []** |
| zz | re-center |
## Text manipulation ## Text manipulation
| | | | | |

View File

@ -0,0 +1,21 @@
---
title: "Vim - Exiting"
tags:
- vim
- movements
---
| | |
| ---------------------------------- | -------------------------------------------- |
| h j k l | ⃪ ↓ ↑ → |
| 0 | to the `start` of the line |
| $ (Shit + 4) | to the `end` of the line |
| e | to `end` of word |
| w |`forward` one **word** |
| W |`forward` one **Word** |
| b |`backward` one **word** |
| B |`backword` one **Word** |
| *<`number`>* wW / e / bB / h j k l | Move *<`number`>* times *<`text objects`>* |
| *<`number`>* G | to **specific line** |
| % | to **matching parenthesis {} () []** |
| zz | re-center |