Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Search and Replace 0 - 4583 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #115 / 1518
  • Number of attempts: 5
Python Hello World! Reformatting - 881 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #134 / 340
  • Number of attempts: 1
imports alignment (python) - 603 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Position: #69 / 183
  • Number of attempts: 6
Rotating Philosophers Problem - 373 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 29
  • Position: #10 / 157
  • Number of attempts: 4
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 26
  • Position: #146 / 190
  • Number of attempts: 2
Ruby 1.9 hashes - 1123 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 14
  • Position: #190 / 374
  • Number of attempts: 3
Assignment Alignment - 738 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 30
  • Position: #146 / 203
  • Number of attempts: 3
Shebangs for all - 1749 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 13
  • Position: #160 / 462
  • Number of attempts: 6
A Simple One - 880 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #197 / 589
  • Number of attempts: 1
The Cake is a Lie - 1178 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #96 / 481
  • Number of attempts: 9
Reformat a C golf submission - 507 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 44
  • Position: #171 / 188
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5864 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 36
  • Position: #387 / 1449
  • Number of attempts: 9
wusher
Twitter:

If you already know what recursion is, remember the answer. Otherwise, find someone who is closer to me than you are; then ask them what it is.

entered into 12 challenges

contributed 0 challenges