Hello, Vim users! Today, I stumbled upon a cool program to improve the use of Vim. Vim is a great editor for writing and editing code. However, some of you (including me) are still struggling in a steep learning curve. No more! Take a look at PacVim, a command-line game that helps you learn Vim commands. PacVim is inspired by the classic game PacMan, which offers you a lot of Vim command exercises in a fun and fun way. In short, PacVim is an interesting and free way to learn more about vim commands. Please do not confuse PacMan with pacman (arch Linux package manager). PacMan is a classic pop arcade game released in the 1980s.
In this brief guide we will see how to install and use PacVim on Linux.
Install PacVim
First install the Ncurses library and development tools as follows.
How to install the Ncurses library on Linux
How to install development tools in Linux
Please note that this game may not compile and install correctly without gcc 4.8.X or higher. I tested PacVim on Ubuntu 18.04 LTS and it worked perfectly.
After installing Ncurses and gcc, run the following command to install PacVim.
Learn Vim commands with PacVim
Launch PacVim game
To play this game, just run:
$ pacvim [LEVEL_NUMER] [MODE]
For example, the following command starts the game level 5 in normal mode.
$ pacvim 5 n
Here, 5 indicates the level and n indicates the mode. There are two modes:
n – normal mode.
h – difficult mode.
The default mode is h, which is hard:
To start from scratch (level 0), run:
$ pacvim
Below is a sample output of my Ubuntu 18.04 LTS.
To start the game, just press Enter.
Start the game now. Read the next section to learn how to play.
To exit, press ESC or q.
The following command starts the game level 5 in difficult mode.
$ pacvim 5 h
or,
$ pacvim 5
How to play PacVim?
The use of PacVim is very similar to PacMan.
You must run through all the characters on the screen while avoiding ghosts (red characters).
PacVim has two special obstacles:
You can't move to the wall (yellow). You must use the vim action to skip them.
If you step on the wavy character (cyan ~), you lose!
You have three lives. You will get new life every time you win 0, 3, 6, or 9. There are a total of 10 levels, from 0 to 9, after winning the 9th level, the game is reset to level 0, but the ghost speed is faster.
Winning conditions
Use the vim command to move the cursor over the letters and highlight them. Once all the letters are highlighted, you will win and go to the next level.
Failure condition
If you encounter a ghost (indicated by a red G) or a wavy character, you will lose a life. If the life is less than 0, you will lose the entire game.
This is a list of implemented commands:
After playing a few passes, you may notice an improvement in the use of vim. Continue playing this game for a while until you master the use of Vim.
Suggested reading:
Today is these. I hope this article is useful. PacVim is fun and fun and lets you do something. At the same time, you should be able to thoroughly learn enough Vim commands. Give it a try, you won't be disappointed.
16 Port Usb Charger,16 Port Powered Usb Hub,200W High Poer Charger,Multiple Usb Desktop Chargers
shenzhen ns-idae technology co.,ltd , https://www.szbestchargers.com