×
Eventil - Find Tech Events
Official mobile app
FREE - In Google Play
View
×
Eventil
Official mobile app
FREE - In App Store
View

VimGolf night #3

Tue, 24 Jun 2014 4:30 PM

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.

What's VimGolf?

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!

Preparations

If you have a laptop, bring it. Get set up by running these steps:

create an account at 

vimgolf.com

 (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.

Event organizers

Are you organizing VimGolf night #3?

Claim the event and start manage its content.

I am the organizer
Social
Rating

based on 0 reviews

Other Events You May Like