{"id":13266,"date":"2019-04-01T10:13:10","date_gmt":"2019-04-01T10:13:10","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13266"},"modified":"2019-04-01T10:13:10","modified_gmt":"2019-04-01T10:13:10","slug":"pacvim-a-game-that-teaches-you-vim-commands","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/pacvim-a-game-that-teaches-you-vim-commands\/","title":{"rendered":"PacVim \u2013 A Game That Teaches You Vim Commands"},"content":{"rendered":"<p>Although\u00a0<a href=\"https:\/\/www.tecmint.com\/vim-8-0-install-in-ubuntu-linux-systems\/\" target=\"_blank\" rel=\"noopener\">Vim<\/a>\u00a0(short for\u00a0<strong>VI Improved<\/strong>) is a popular\u00a0<a href=\"https:\/\/www.tecmint.com\/best-open-source-linux-text-editors\/\" target=\"_blank\" rel=\"noopener\">text editor on Linux<\/a>\u00a0systems, people still find it hard to learn, it has a steep learning curve especially the advanced features; a lot of Linux newbies are literally afraid of learning this powerful and highly recommended text editor.<\/p>\n<p>On the other hand, so much effort has been directed by the\u00a0<strong>Tecmint<\/strong>\u00a0and\u00a0<strong>Linux<\/strong>\u00a0community towards making\u00a0<strong>Vim<\/strong>easy to learn; from creating\u00a0<a href=\"https:\/\/www.tecmint.com\/vi-editor-usage\/\" target=\"_blank\" rel=\"noopener\">Vim tutorials<\/a>, sharing useful\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-use-vi-and-vim-editor-in-linux\/\" target=\"_blank\" rel=\"noopener\">Vim usage tricks and tips<\/a>, to developing interactive learning web-apps and command-line games such as\u00a0<strong>PacVim<\/strong>.<\/p>\n<p><strong>PacVim<\/strong>\u00a0is 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\u00a0<strong>PacMan<\/strong>\u00a0game, 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 \u2013 you must move the pacman (the green cursor) over all the characters on the screen while avoiding the ghosts (red\u00a0<strong>G<\/strong>).<\/p>\n<h3>How to Install PacVim Game in Linux<\/h3>\n<p>To install\u00a0<strong>PacVim<\/strong>\u00a0game, you need to first install required\u00a0<strong>Curses<\/strong>\u00a0(graphics library) package on your Linux distribution using default package manager as shown.<\/p>\n<pre>$ sudo apt install libncurses5-dev libncursesw5-dev  [<strong>On Ubuntu\/Debian<\/strong>]\r\n# yum install ncurses-devel                          [<strong>On CentOS\/RHEL<\/strong>]\r\n# dnf install ncurses-devel                          [<strong>On Fedora<\/strong>]\r\n<\/pre>\n<p>Next, download\u00a0<strong>PacVim<\/strong>\u00a0source files by cloning its repository and install it as shown.<\/p>\n<pre>$ cd ~\/Downloads\r\n$ git clone https:\/\/github.com\/jmoon018\/PacVim.git\r\n$ cd PacVim\r\n$ sudo make install\r\n<\/pre>\n<p>After installing\u00a0<strong>PacVim<\/strong>, you can start learning\u00a0<strong>vim commands<\/strong>\u00a0by running it from\u00a0<strong>level 0<\/strong>\u00a0and the default mode is\u00a0<strong>hard<\/strong>.<\/p>\n<pre>$ pacvim\r\n<\/pre>\n<div id=\"attachment_29973\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/PacVIM-Game-for-Learning-Vim-Commands.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29973\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/PacVIM-Game-for-Learning-Vim-Commands.gif\" alt=\"PacVIM Game for Learning Vim Commands\" width=\"520\" height=\"440\" aria-describedby=\"caption-attachment-29973\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29973\" class=\"wp-caption-text\">PacVIM Game for Learning Vim Commands<\/p>\n<\/div>\n<p>Here are a few keys to move the cursor:<\/p>\n<ul>\n<li><code>h<\/code>\u00a0\u2013 move left<\/li>\n<li><code>i<\/code>\u00a0\u2013 move right<\/li>\n<li><code>j<\/code>\u00a0\u2013 move down<\/li>\n<li><code>k<\/code>\u00a0\u2013 move up<\/li>\n<li><code>q<\/code>\u00a0\u2013 quit the game<\/li>\n<\/ul>\n<p>You can launch it in a specific level and mode (<code>n<\/code>\u00a0and\u00a0<code>h<\/code>\u00a0for normal\/hard respectively), for example.<\/p>\n<pre>$ pacvim n\r\nOR\r\n$ pacvim 2\r\nOR\r\n$ pacvim 2 n\r\n<\/pre>\n<p>You can find more information including key-usage combinations and how to create your custom maps from the\u00a0<a href=\"https:\/\/github.com\/jmoon018\/PacVim\" target=\"_blank\" rel=\"nofollow noopener\">PacVim Github repository<\/a>.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/nsnake-a-clone-of-old-classic-snake-game-play-in-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">nSnake \u2013 Play Old Classic Snake Game in Linux Terminal<\/a><\/p>\n<p>That\u2019s all!\u00a0<strong>PacVim<\/strong>\u00a0is a useful game that teaches you vim commands while having\u00a0<a href=\"https:\/\/www.tecmint.com\/20-funny-commands-of-linux-or-linux-is-fun-in-terminal\/\" target=\"_blank\" rel=\"noopener\">fun with Linux terminal<\/a>. Use the comment form below to share your thoughts or ask questions about it.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/learn-vi-commands-with-pacvim-game\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although\u00a0Vim\u00a0(short for\u00a0VI Improved) is a popular\u00a0text editor on Linux\u00a0systems, people still find it hard to learn, it has a steep learning curve especially the advanced features; a lot of Linux newbies are literally afraid of learning this powerful and highly recommended text editor. On the other hand, so much effort has been directed by the\u00a0Tecmint\u00a0and\u00a0Linux\u00a0community &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/pacvim-a-game-that-teaches-you-vim-commands\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PacVim \u2013 A Game That Teaches You Vim Commands&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13266","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13266"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13266\/revisions"}],"predecessor-version":[{"id":13267,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13266\/revisions\/13267"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}