VimGolf night #3
Back by popular demand: it's Vim Golf night! We'll split up into groups of two or three, and work through a few holes of Vim Golf together. At the end, we'll compare notes, and hopefully pick up a few new tricks.
We'll work through some challenges from vimgolf.com (9 holes anyone?). Here's how it works: you create an account on the site and install the vimgolf client. Each challenge features a start file and an end file. Your objective is to use Vim to transform the start file to match the end file, using as few keystrokes as possible. When you're done, write the file and quit Vim (hint: :x is shorter than :wq, but ZZis best).
If you make a mistake, the vimgolf client will show you a diff of your solution against the end file, which reveals where you went wrong. If you get it right, the vimgolf client will ask you if you want to submit your solution to the leaderboard for that challenge. Do it! Then you can view some of the solutions that beat yours. Take notes, and try again. That way you can climb the leaderboard. Watch out. It's addictive!
If you have a laptop, bring it. Get set up by running these steps:
create an account at
(requires sign-in via Twitter)install and configure the vimgolf client
We'll team up into groups of 2-3. I recommend using one laptop per team, and working through the exercises as though you were pair-programming. That is: one person drives and the other navigates. Take it in turns. Swap often. That way, you'll solve the problems by working together.