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

Prime Numbers - 342 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 43
  • Position: #49 / 101
  • Number of attempts: 1
vim = 22 / 7 - 447 entries

pi square vim

  • Best score: 20
  • Best player score: 35
  • Position: #110 / 131
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 676 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #174 / 384
  • Number of attempts: 1
Search and Replace 0 - 4790 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #202 / 1585
  • Number of attempts: 4
Python Hello World! Reformatting - 936 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 41
  • Position: #51 / 363
  • Number of attempts: 1
Ruby 1.9 compat - 609 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: #133 / 229
  • Number of attempts: 1
Hatsuyume - 450 entries

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

  • Best score: 16
  • Best player score: 29
  • Position: #116 / 174
  • Number of attempts: 2
Context insensitive completion 0 - 502 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: 10
  • Position: #211 / 231
  • Number of attempts: 1
Context Insensitive completion 1 - 456 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #100 / 231
  • Number of attempts: 1
Linear congruential generator - 128 entries

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

  • Best score: 28
  • Best player score: 42
  • Position: #41 / 50
  • Number of attempts: 1
Reverse characters in a line - 709 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: 12
  • Position: #4 / 249
  • Number of attempts: 5
Reformat most common surnames - 644 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 23
  • Position: #7 / 197
  • Number of attempts: 6
Remember FizzBuzz? - 653 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 95
  • Position: #164 / 177
  • Number of attempts: 2
Change the content of a string - 1457 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #254 / 552
  • Number of attempts: 1
Deleting folded text - 338 entries

The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.

  • Best score: 17
  • Best player score: 20
  • Position: #57 / 113
  • Number of attempts: 3
Sort and add attributes - 1321 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #144 / 527
  • Number of attempts: 3
Reconstruct the Sentence - 1348 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: #75 / 379
  • Number of attempts: 3
Flodder-challenge - 1086 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 42
  • Position: #240 / 305
  • Number of attempts: 1
Brent Carmer
Twitter:

entered into 18 challenges

contributed 0 challenges