mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
35 lines
1.7 KiB
Markdown
35 lines
1.7 KiB
Markdown
---
|
|
title: "Vim - The Personal Man"
|
|
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** |
|
|
|
|
|
|
# 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 |
|
|
|
|
|
|
|