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

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 43
  • Position: #53 / 109
  • Number of attempts: 1
vim = 22 / 7 - 491 entries

pi square vim

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

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #202 / 1674
  • Number of attempts: 4
Python Hello World! Reformatting - 1048 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: #61 / 398
  • Number of attempts: 1
Ruby 1.9 compat - 661 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: #143 / 241
  • Number of attempts: 1
Hatsuyume - 582 entries

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

  • Best score: 15
  • Best player score: 29
  • Position: #133 / 194
  • Number of attempts: 2
Context insensitive completion 0 - 605 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: #234 / 255
  • Number of attempts: 1
Context Insensitive completion 1 - 532 entries

Finish writing this simple Python HTTP server.

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

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

  • Best score: 28
  • Best player score: 42
  • Position: #44 / 57
  • Number of attempts: 1
Reverse characters in a line - 844 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: 12
  • Position: #5 / 282
  • Number of attempts: 5
Reformat most common surnames - 834 entries

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

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

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 95
  • Position: #188 / 209
  • Number of attempts: 2
Change the content of a string - 1799 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #305 / 655
  • Number of attempts: 1
Deleting folded text - 428 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: #67 / 130
  • Number of attempts: 3
Sort and add attributes - 1591 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #144 / 615
  • Number of attempts: 3
Reconstruct the Sentence - 1745 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: #91 / 457
  • Number of attempts: 3
Flodder-challenge - 1500 entries

Replace the text the most efficient and win!

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

entered into 18 challenges

contributed 0 challenges