TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A CLI game to learn Vim

296 pointsby prandoabout 7 years ago

17 comments

icc97about 7 years ago
I got comfortable on the basic Vim keys using shortcutFoo [0], plus actually diving in to using it full-time. Learning Vim takes full time usage as you need to switch over your muscle memory. I still find that GVim is brilliant for beginners as it is tolerant of using other style shortcuts so you don&#x27;t burn yourself. Even though you might learn slower you&#x27;re more likely to progress as it&#x27;s less frustrating.<p>I don&#x27;t know if there&#x27;s much evidence of these game style methods actually working. I tried vim-adventures [1], but just found it annoying. As far as I can tell you just want to apply similar learning techniques as with touch typing, so just typing the letters to the screen.<p>As a side benefit of learning Vim, it&#x27;s encouraged me to improve my touch typing because of the added benefit that you can type your Vim commands faster.<p>[0]: <a href="https:&#x2F;&#x2F;www.shortcutfoo.com&#x2F;app&#x2F;dojos&#x2F;vim" rel="nofollow">https:&#x2F;&#x2F;www.shortcutfoo.com&#x2F;app&#x2F;dojos&#x2F;vim</a><p>[1]: <a href="https:&#x2F;&#x2F;vim-adventures.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vim-adventures.com&#x2F;</a>
评论 #17079179 未加载
评论 #17081391 未加载
butzabout 7 years ago
&quot;To quit, press ESC or q.&quot; They fail to teach you the most important command of VIM.
评论 #17078486 未加载
jgtroshabout 7 years ago
&gt; Please do not confuse PacMan with pacman (the arch Linux package manager). PacMan is a classic, popular arcade game released in the 1980s.<p>This is the most wonderful praise one could give to Arch.
评论 #17080888 未加载
Tepixabout 7 years ago
If you want to internalise the vi cursor movement keys, play the old unix game &quot;hunt&quot; with your colleagues or classmates.<p>See <a href="http:&#x2F;&#x2F;techtinkering.com&#x2F;2009&#x2F;08&#x2F;11&#x2F;my-top-10-classic-text-mode-bsd-games&#x2F;" rel="nofollow">http:&#x2F;&#x2F;techtinkering.com&#x2F;2009&#x2F;08&#x2F;11&#x2F;my-top-10-classic-text-m...</a> (it&#x27;s at no. 2)<p>&quot;This is a multi-player games that can be played over a network, or via multiple terminals on one machine. It consists of a top-down view of a maze where you run around trying to find your opponents to kill. There are a number of weapons and you can also play in teams. It is surprisingly fun, a sort of top-down text mode doom.<p>Originally written by Conrad Huang and Greg Couch in 1979&#x2F;80.&quot;
noufalibrahimabout 7 years ago
Emacs has something called Keywiz <a href="https:&#x2F;&#x2F;marmalade-repo.org&#x2F;packages&#x2F;keywiz" rel="nofollow">https:&#x2F;&#x2F;marmalade-repo.org&#x2F;packages&#x2F;keywiz</a> which will gather your keybindings (including custom ones) and ask them back to you as a quiz.<p>Not as cool as this but I used to play it back in the day and learnt quite a few neat tricks from it.
partycoderabout 7 years ago
Or try kakoune, a more discoverable and ergonomic rewrite of vim.
评论 #17079133 未加载
评论 #17078347 未加载
评论 #17078015 未加载
freedombenabout 7 years ago
would be awesome to just:<p><pre><code> docker run -it --rm pacvim </code></pre> I&#x27;ll probably build it tonight if nobody else does (please comment here so we don&#x27;t duplicate work)
评论 #17078443 未加载
akkartikabout 7 years ago
Somebody please make &#x27;PacMan - a text-mode game to learn Man commands&#x27;.
评论 #17078326 未加载
adkafkaabout 7 years ago
Bit of a backdoor if you press &#x27;&amp;&#x27; :) <a href="https:&#x2F;&#x2F;github.com&#x2F;jmoon018&#x2F;PacVim&#x2F;blob&#x2F;master&#x2F;src&#x2F;game.cpp#L141-L143" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jmoon018&#x2F;PacVim&#x2F;blob&#x2F;master&#x2F;src&#x2F;game.cpp#...</a>
adkafkaabout 7 years ago
Interesting that this was implemented as a standalone C++ Application. I was expected this to be a vim script like program, which would be more desirable as it would pick up on custom defined shortcuts in my ~&#x2F;.vimrc.
BlackLotus89about 7 years ago
Obligatory mention of vim adventures [0] and vim tutor [1] :)<p>Will try this as well as this seems to be something between nethack and vim adventures?<p>[0] <a href="https:&#x2F;&#x2F;vim-adventures.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vim-adventures.com&#x2F;</a><p>[1] man vimtutor<p>Edit: arch has a package for it in the aur pacvim-git so pacaur&#x2F;packer&#x2F;yaourt can be used to easily install it<p>Edit2: the game doesn&#x27;t really teach you anything this is basicly vim adventures without any explanation :&#x2F; would have liked something to give vim beginners to get comfortable with the keybinding while actually learning them
the_dukeabout 7 years ago
Doesn&#x27;t work for me at all on Arch.<p>I always just see : Press enter to play =&gt; You win the game!<p>Without anything inbetween, and it jumps straight to the next level.
评论 #17078705 未加载
评论 #17078382 未加载
testcrossabout 7 years ago
Those games are always for vim. But I would love to have something like this with emacs using all the transposition commands or what is available from paredit&#x2F;smartparens.
boffinismabout 7 years ago
&gt; There are two modes<p>&gt; n – normal mode. &gt; h – hard mode.<p>&gt; The default mode is h, which is hard<p>That&#x27;s an interesting definition of &#x27;normal&#x27;, then.
gerdesjabout 7 years ago
Other editors are available.<p>I&#x27;ve never been either old enough (47) or cool enough (-20C) to really give a shit about vi&#x2F;vim or emacs and co. I merely tolerate them and can do the very basics.<p>I use joe by preference at the console (&quot;boredom&quot; if you like - no real excitement) and live with nano. vi and emacs I merely tolerate because I generally have to look up something.<p>kate&#x27;s alright - she&#x27;s a pretty lass (for an editor) but needs a lot of Plasma and QT.
评论 #17078952 未加载
评论 #17080705 未加载
edf13about 7 years ago
I&#x27;m pretty old... when I started they taught Cobol at college... But why can&#x27;t we just use nano?
cup-of-teaabout 7 years ago
Text UI != CLI.<p>I still remember the vim movement commands from some game I played years ago when I tried to learn it. It&#x27;s a nice way to learn. Reminds me of &quot;typing games&quot; that used to exist.
评论 #17078316 未加载