PacVim

PacVim is a game that will teach you how to use the vim text editor.

Software Included

Package Version License
PacVim Latest LGPL 3.0
Awesome Sauce Latest Open Source Sauce

Creating an App using the Control Panel

Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.

Deploy to DO

Creating an App using the API

In addition to creating a Droplet from the PacVim 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB PacVim Droplet in the SFO2 region, you can use the following curl command. You need to either save your API access token) to an environment variable or substitute it in the command below.

curl -X POST -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer '$TOKEN'' -d \
        '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "sharklabs-pacvim-18-04"}' \
        "https://api.digitalocean.com/v2/droplets"

Getting Started After Deploying PacVim

To play, ssh into your Droplet and then run:

pacvim [LEVEL_NUMBER] [MODE]

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

pacvim 8 n

How To Play

The objective of PacVim is very similar to PacMan.

You must run over all the characters on the screen while avoiding the ghosts (red G).

PacVim has two special obstacles:

  1. You cannot move into the walls (yellow color). You must use vim motions to jump over them.
  2. If you step on a tilde character (cyan ~), you lose!You are given three lives. You gain a life each time you beat

level 0, 3, 6, 9, etc. There are 10 levels, 0 through 9. After

beating the 9th level, the game is reset to the 0th level, but

the ghosts move faster.Winning conditions: Use vim commands to move the cursor

over the letters and highlight them. After all letters are

highlighted, you win and proceed to the next level.

Losing conditions: If you touch a ghost (indicated

by a red G) or a tilde character, you lose a life. If you

have less than 0 lives, you lose the entire game.

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)