Add Vim exercises, cheatsheet, and project polish
Add code golf challenges for Vim practice, a weekly review template, and extend the cheatsheet with high-frequency commands. Fix the calculator `multiply` implementation and correct a logger import path.
This commit is contained in:
@@ -15,6 +15,25 @@
|
||||
|
||||
---
|
||||
|
||||
## 必杀技(高频)
|
||||
|
||||
| 按键 | 行为 |
|
||||
|------|------|
|
||||
| `.` | 重复上次修改(Vim 最强按键) |
|
||||
| `u` / `Ctrl+r` | 撤销 / 重做 |
|
||||
| `gi` | 回到上次插入位置 |
|
||||
| `g;` / `g,` | 跳转到上/下一个修改位置 |
|
||||
| `Ctrl+o` / `Ctrl+i` | 跳回/前进(跳转列表) |
|
||||
| `xp` | 交换光标后两个字符 |
|
||||
| `J` | 合并当前行和下一行 |
|
||||
| `~` | 切换光标字符大小写 |
|
||||
| `Ctrl+a` / `Ctrl+x` | 数字 +1 / -1 |
|
||||
| `gg=G` | 格式化整个文件 |
|
||||
| `:%s/old/new/g` | 全文替换 |
|
||||
| `:g/pat/d` | 删除所有匹配 `pat` 的行 |
|
||||
|
||||
---
|
||||
|
||||
## 移动(Motion)
|
||||
|
||||
### 基础
|
||||
|
||||
Reference in New Issue
Block a user