command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 16, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
PacVim in Go
使用 vim 指令移动绿色 P 来躲避红色 G 从而练习 vim。
安装
go get github.com/GGboya/ggvim
go get -u github.com/GGboya/ggvim
使用
键入 ggvim 来开始游戏
游玩方法
游戏方法和吃豆人类似,移动绿色 P 来躲避红色 G。
P 有两个障碍:
- 不能走到墙上,可以通过指令穿墙
- 踩到蓝色 ~,结束游戏
实现的指令
| 按键 |
操作 |
| h |
左移 |
| j |
下移 |
| k |
上移 |
| l |
右移 |
| w |
移到下一个 word 的开头 |
| W |
移到下一个 WORD 的开头 |
| e |
移到下一个 word 的结尾 |
| E |
移到下一个 WORD 的结尾 |
| b |
移到上一个 word 的开头 |
| B |
移到上一个 WORD 的开头 |
| $ |
移到行尾 |
| 0 |
移到硬行首 |
| ^ |
移到软行首 |
| gg |
移到第一行第一个非空字符 |
| G |
移到最后一行第一个非空字符 |
| Ctrl C |
退出游戏 |
开发日志
- 20250516
修复 gg, G 的逻辑,增加难度系数,用户可选 easy, mid, hard
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.