PacVim is a free open source, text-based game that teaches you vim commands in a simple and fun manner. It is inspired by the popular and classic PacMan game and runs on Linux and MacOSX. It helps you to comprehensively learn vim commands in an enjoyable way. Its objective is more or less like that of PacMan – you must move the Pacman (the green cursor) over all the characters on the screen while avoiding the ghosts (red G).

 

How to Install PacVim Game in Linux

 

To install PacVim game, you need to first install required Curses (graphics library) package on your Linux distribution using default package manager as shown.

$ sudo apt install libncurses5-dev libncursesw5-dev  [On Ubuntu/Debian]
# yum install ncurses-devel                          [On CentOS/RHEL]
# dnf install ncurses-devel                          [On Fedora]

 

Next, download PacVim source files by cloning its repository and install it as shown.

$ cd ~/Downloads
$ git clone https://github.com/jmoon018/PacVim.git
$ cd PacVim
$ sudo make install

 

After installing PacVim, you can start learning vim commands by running it from level 0 and the default mode is hard.

$ pacvim

 

Here are a few keys to move the cursor:

h – move left
i – move right
j – move down
k – move up
q – quit the game

 

You can launch it on a specific level and mode (n and h for normal/hard respectively), for example.

$ pacvim n
OR
$ pacvim 2
OR
$ pacvim 2 n

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)