From 83fa7f97fccb63c859db5a7381e4bd6ccda5b186 Mon Sep 17 00:00:00 2001 From: Anmol Pandita <39385082+anmolpandita1@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:04:24 +0530 Subject: [PATCH] update --- content/notes/Untitled.md | 0 content/notes/vim.exiting.md | 16 ++++++++++++++++ content/notes/vim.md | 28 ++++------------------------ content/notes/vim.movements.md | 21 +++++++++++++++++++++ 4 files changed, 41 insertions(+), 24 deletions(-) delete mode 100644 content/notes/Untitled.md create mode 100644 content/notes/vim.exiting.md create mode 100644 content/notes/vim.movements.md diff --git a/content/notes/Untitled.md b/content/notes/Untitled.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/notes/vim.exiting.md b/content/notes/vim.exiting.md new file mode 100644 index 000000000..3f39eef36 --- /dev/null +++ b/content/notes/vim.exiting.md @@ -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** | +| | | \ No newline at end of file diff --git a/content/notes/vim.md b/content/notes/vim.md index 95f50abde..79a86403e 100644 --- a/content/notes/vim.md +++ b/content/notes/vim.md @@ -6,30 +6,10 @@ tags: ## Navigation 👻 -### 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** | -| | | -### 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 | +![[vim.exiting]] + + +![[vim.movements]] ## Text manipulation | | | diff --git a/content/notes/vim.movements.md b/content/notes/vim.movements.md new file mode 100644 index 000000000..9c7569e09 --- /dev/null +++ b/content/notes/vim.movements.md @@ -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 |