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

A simple change - 429 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #60 / 184
  • Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 165 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 28
  • Position: #41 / 99
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 394 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 11
  • Position: #106 / 184
  • Number of attempts: 1
The name of the game - 638 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #36 / 350
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1534 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #148 / 432
  • Number of attempts: 1
SFD-ROC: Pipe Dreams - 99 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 18
  • Position: #32 / 44
  • Number of attempts: 3
Stairs Indenting - 440 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #63 / 189
  • Number of attempts: 1
Python to Ruby - 193 entries

Convert this Python code to Ruby. NOTE: This program likely won't run.

  • Best score: 24
  • Best player score: 24
  • Position: #1 / 57
  • Number of attempts: 11
you're stuck on jQuery < 1.7 - 335 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 26
  • Position: #19 / 110
  • Number of attempts: 6
Vertical Limit - 2389 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #196 / 724
  • Number of attempts: 1
Shebangs for all - 1804 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: 15
  • Position: #249 / 475
  • Number of attempts: 1
Compile C - 357 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #60 / 129
  • Number of attempts: 3
Simple text editing with Vim - 11865 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #954 / 3472
  • Number of attempts: 4
Nathan
Twitter:

entered into 13 challenges

contributed 0 challenges