ggvim

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: MIT Imports: 6 Imported by: 0

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 有两个障碍:

  1. 不能走到墙上,可以通过指令穿墙
  2. 踩到蓝色 ~,结束游戏

实现的指令

按键 操作
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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL