vim

Pacvim|vim Game

Posted by Elli0t on 2020-10-10

https://github.com/jmoon018/PacVim

PacVim is a game that teaches you vim commands. You must move pacman (the green cursor) to highlight each word on the gameboard while avoiding the ghosts (in red).

hello_vim

Mac OS X

1
brew install pacvim

How To Play

List of Implemented Commands

key what it does
q quit the game
h move left
j move down
k move up
l move right
w move forward to next word beginning
W move forward to next WORD beginning
e move forward to next word ending
E move forward to next WORD ending
b move backward to next word beginning
B move backward to next WORD beginning
$ move to the end of the line
0 move to the beginning of the line
gg/1G move to the beginning of the first line
numberG move to the beginning of the line given by number
G move to the beginning of the last line
^ move to the first word at the current line
& 1337 cheatz (beat current level)

To play, run (from anywhere):

1
$ pacvim [LEVEL_NUMBER] [MODE]

You may specify the starting level and mode (n and h for normal/hard). Default mode is hard:

1
$ pacvim 8 n

image-20201009222824757

image-20201010091337986

玩到第7关玩不下去了,熄灯就寝