mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
update
This commit is contained in:
parent
da04e7f81f
commit
83fa7f97fc
16
content/notes/vim.exiting.md
Normal file
16
content/notes/vim.exiting.md
Normal 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** |
|
||||
| | |
|
||||
@ -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
|
||||
| | |
|
||||
|
||||
21
content/notes/vim.movements.md
Normal file
21
content/notes/vim.movements.md
Normal 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 |
|
||||
Loading…
Reference in New Issue
Block a user