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

Cartesian product - 201 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 53
  • Number of attempts: 1
Make Fancy Header - 928 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 38
  • Number of attempts: 1
Sort and add attributes - 1110 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Number of attempts: 2
Shebangs for all - 1643 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: 31
  • Number of attempts: 1
Increment, increment, increment.... - 503 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 506 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
The Cake is a Lie - 1143 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
Simple text editing with Vim - 10892 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Reverse Simple Deletion - 730 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Change the content of a string - 1260 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 33
  • Number of attempts: 1
Search and Replace 0 - 4383 entries

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

  • Best score: 12
  • Best player score: 22
  • Number of attempts: 1
Case preserving word replacement - 394 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 2
A Simple One - 852 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
  • Number of attempts: 1
Reconstruct the Sentence - 1034 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: 29
  • Number of attempts: 1
The holy-grail may help - 302 entries

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

  • Best score: 16
  • Best player score: 26
  • Number of attempts: 1
sorami
Twitter:

entered into 15 challenges

contributed 0 challenges