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

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

  • Best score: 12
  • Best player score: 15
  • Position: #1111 / 1644
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #59 / 3979
  • Number of attempts: 4
Delete unwanted lines - 431 entries

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

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

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

  • Best score: 21
  • Best player score: 28
  • Position: #573 / 772
  • Number of attempts: 1
Append semicolon after expressions - 1065 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Position: #391 / 422
  • Number of attempts: 1
switch variable - 5101 entries

how fast can you switch two variable ?

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

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

  • Best score: 16
  • Best player score: 16
  • Position: #125 / 216
  • Number of attempts: 1
Ruby 1.9 compat - 642 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 / 237
  • Number of attempts: 9
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #489 / 639
  • Number of attempts: 1
Braces or Brackets? - 1140 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: #218 / 349
  • Number of attempts: 1
Simple text editing with Vim - 13425 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #3299 / 3848
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7514 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #554 / 1850
  • 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