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 - 4575 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #1009 / 1515
  • Number of attempts: 1
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #34 / 3905
  • Number of attempts: 4
Delete unwanted lines - 350 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #38 / 210
  • Number of attempts: 2
Vertical Limit - 2310 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 28
  • Position: #523 / 702
  • Number of attempts: 1
Append semicolon after expressions - 923 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Position: #348 / 375
  • Number of attempts: 1
switch variable - 4865 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #170 / 1689
  • Number of attempts: 4
The holy-grail may help - 304 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #125 / 190
  • Number of attempts: 1
Ruby 1.9 compat - 566 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 14
  • Position: #42 / 216
  • Number of attempts: 9
Change the content of a string - 1286 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #382 / 498
  • Number of attempts: 1
Braces or Brackets? - 645 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 48
  • Position: #158 / 240
  • Number of attempts: 1
Simple text editing with Vim - 11391 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 26
  • Position: #2900 / 3347
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5835 entries

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

  • Best score: 32
  • Best player score: 37
  • Position: #489 / 1442
  • Number of attempts: 2
Kevin McGladdery
Twitter:

I'm dope on the floor and I'm magic on the mic.

entered into 12 challenges

contributed 0 challenges