This commit is contained in:
Anmol Pandita 2022-05-22 15:06:06 +05:30
parent 55cff215a9
commit 1bfa5dd63b
2 changed files with 3 additions and 117 deletions

View File

@ -1,14 +0,0 @@
---
title: "test"
tags:
- test
---
## Nature
this is what nature does to you
### Healing
it heals you
## What is
is it even working?

View File

@ -4,9 +4,7 @@ tags:
- vim
---
## Navigation
Navigating vim is beautiful
### Exiting 👻
# Navigation 👻
| | |
| --------------- | ------------------------------------- |
| :q | to `quit` the file |
@ -14,8 +12,7 @@ Navigating vim is beautiful
| :q! | to `trash` all changes and **quit** |
| :wq | to `save` the changes and **quit** |
| ZZ (Shift + zz) | to `save` the changes and **quit** |
## Navigation
## Movements
| | |
| ---------------------------------- | -------------------------------------------- |
| h j k l | ⃪ ↓ ↑ → |
@ -31,103 +28,7 @@ Navigating vim is beautiful
| % | to **matching parenthesis {} () []** |
| zz | re-center |
## Text manipulation
| | |
| --- | --------------------------------------------- |
| x | delete at the cursor (→ in normal mode still) |
| i | insert before the cursor |
| I | insert beginning of the line |
| a | insert after the cursor |
| A | append after the line |
| o | open line above |
| O | open line below |
| s | delete character and insert |
| S | delete line and insert |
| R overstrike mode | replace text character by character (max 1 line) |
| c *<`movement`>* wW / bB / 2j / $/ 0 | change till (→ in insert mode now) | cc - change one line |
| d *<`movement`>* wW / bB / 2j / $/ 0 | delete till (→ in normal mode still) | dd - delete one line ... |
| r | replace single character (→ dont have to press ESC) |
| *<`number`>* ~ | change letter case |
> Remember - **(command)*(number)(text object)****
### 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** |
## Navigation
| | |
| ---------------------------------- | -------------------------------------------- |
| 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
| | |
| --- | --------------------------------------------- |
| x | delete at the cursor (→ in normal mode still) |
| i | insert before the cursor |
| I | insert beginning of the line |
| a | insert after the cursor |
| A | append after the line |
| o | open line above |
| O | open line below |
| s | delete character and insert |
| S | delete line and insert |
| R overstrike mode | replace text character by character (max 1 line) |
| c *<`movement`>* wW / bB / 2j / $/ 0 | change till (→ in insert mode now) | cc - change one line |
| d *<`movement`>* wW / bB / 2j / $/ 0 | delete till (→ in normal mode still) | dd - delete one line ... |
| r | replace single character (→ dont have to press ESC) |
| *<`number`>* ~ | change letter case |
> Remember - **(command)*(number)(text object)****
### 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** |
## Navigation
| | |
| ---------------------------------- | -------------------------------------------- |
| 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
| | |
| --- | --------------------------------------------- |
| x | delete at the cursor (→ in normal mode still) |
@ -151,4 +52,3 @@ Navigating vim is beautiful