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

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

  • Best score: 7
  • Best player score: 12
  • Position: #21 / 1680
  • Number of attempts: 4
Happy New Year! - 150 entries

This is a simple new year's challenge.

  • Best score: 22
  • Best player score: 32
  • Position: #50 / 61
  • Number of attempts: 2
Reformat long lines - 390 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 17
  • Position: #44 / 142
  • Number of attempts: 4
Generate English Alphabets - 540 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #73 / 216
  • Number of attempts: 1
A Simple One - 1096 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: #23 / 683
  • Number of attempts: 1
Ruby 1.9 compat - 670 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: 16
  • Position: #134 / 245
  • Number of attempts: 6
Reverse Simple Deletion - 875 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #107 / 467
  • Number of attempts: 2
Increment, increment, increment.... - 712 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #147 / 420
  • Number of attempts: 1
Sorting paragraphs - 570 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 25
  • Position: #54 / 171
  • Number of attempts: 5
Hatsuyume - 583 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 42
  • Position: #186 / 195
  • Number of attempts: 1
Dumb to smart - 116 entries

Turn dumb quote to smart vim's way.

  • Best score: 27
  • Best player score: 38
  • Position: #48 / 60
  • Number of attempts: 1
The Cake is a Lie - 1422 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #50 / 546
  • Number of attempts: 4
Context insensitive completion 0 - 611 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 9
  • Position: #168 / 258
  • Number of attempts: 1
Remove Accent off the Letter - 158 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 76
  • Position: #45 / 54
  • Number of attempts: 2
Almost encrypted - 212 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #6 / 150
  • Number of attempts: 3
Make Fancy Header - 1111 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #10 / 357
  • Number of attempts: 5
Reformat some Python - 660 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 52
  • Position: #196 / 249
  • Number of attempts: 3
Reverse characters in a line - 848 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 14
  • Position: #106 / 285
  • Number of attempts: 3
Reconstruct the Sentence - 1763 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 20
  • Position: #22 / 461
  • Number of attempts: 4
Braces or Brackets? - 1219 entries

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

  • Best score: 34
  • Best player score: 46
  • Position: #186 / 367
  • Number of attempts: 2
Simple text editing with Vim - 13682 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #3409 / 3920
  • Number of attempts: 1
Henrik Nyh
Twitter:

Swedish web developer.

entered into 21 challenges

contributed 0 challenges