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

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

  • Best score: 12
  • Best player score: 12
  • Position: #20 / 1526
  • Number of attempts: 4
Happy New Year! - 129 entries

This is a simple new year's challenge.

  • Best score: 22
  • Best player score: 32
  • Position: #48 / 54
  • Number of attempts: 2
Reformat long lines - 320 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: #35 / 125
  • Number of attempts: 4
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #61 / 190
  • Number of attempts: 1
A Simple One - 888 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 / 592
  • Number of attempts: 1
Ruby 1.9 compat - 577 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: #116 / 220
  • Number of attempts: 6
Reverse Simple Deletion - 742 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #91 / 421
  • Number of attempts: 2
Increment, increment, increment.... - 546 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #104 / 363
  • Number of attempts: 1
Sorting paragraphs - 477 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 25
  • Position: #43 / 148
  • Number of attempts: 5
Hatsuyume - 381 entries

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

  • Best score: 16
  • Best player score: 42
  • Position: #147 / 156
  • Number of attempts: 1
Dumb to smart - 82 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 38
  • Position: #38 / 49
  • 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: #49 / 481
  • Number of attempts: 4
Context insensitive completion 0 - 464 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: 7
  • Best player score: 9
  • Position: #132 / 218
  • Number of attempts: 1
Remove Accent off the Letter - 100 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 76
  • Position: #37 / 46
  • Number of attempts: 2
Almost encrypted - 178 entries

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #8 / 316
  • Number of attempts: 5
Reformat some Python - 552 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 52
  • Position: #171 / 219
  • Number of attempts: 3
Reverse characters in a line - 618 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #74 / 228
  • Number of attempts: 3
Reconstruct the Sentence - 1084 entries

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

  • Best score: 20
  • Best player score: 20
  • Position: #3 / 334
  • Number of attempts: 4
Braces or Brackets? - 657 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: #124 / 243
  • Number of attempts: 2
Simple text editing with Vim - 11495 entries

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

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

Swedish web developer.

entered into 21 challenges

contributed 0 challenges