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:
2026-05-31 23:01:37 +08:00
parent 03f3114503
commit e8dfa0e2f1
14 changed files with 274 additions and 7 deletions
+28
View File
@@ -0,0 +1,28 @@
// ============================================================
// Code Golf 场景 4:数组转对象
// ============================================================
//
// 目标:在 keys/values 上方创建 person 对象,用最少按键。
//
// 💡 提示:O 在上方插入、手动拼对象、或 y i w + p 配合编辑
// ============================================================
const keys = ["name", "age", "email"];
const values = ["Alice", 30, "alice@example.com"];
// === 目标代码 ===
//
// const person = {
// name: "Alice",
// age: 30,
// email: "alice@example.com",
// };
//
// const keys = ["name", "age", "email"];
// const values = ["Alice", 30, "alice@example.com"];
//
// ============================================================
// 我的最佳成绩:
// 日期: ________ 按键数: ________
// 操作日志: ________________________________
// ============================================================