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

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 43
  • Position: #52 / 107
  • Number of attempts: 1
vim = 22 / 7 - 475 entries

pi square vim

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

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #202 / 1637
  • Number of attempts: 4
Python Hello World! Reformatting - 1007 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: #58 / 384
  • Number of attempts: 1
Ruby 1.9 compat - 640 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: #139 / 236
  • Number of attempts: 1
Hatsuyume - 556 entries

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

  • Best score: 15
  • Best player score: 29
  • Position: #131 / 191
  • Number of attempts: 2
Context insensitive completion 0 - 592 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: #229 / 250
  • Number of attempts: 1
Context Insensitive completion 1 - 512 entries

Finish writing this simple Python HTTP server.

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

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

  • Best score: 28
  • Best player score: 42
  • Position: #43 / 54
  • Number of attempts: 1
Reverse characters in a line - 789 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 / 269
  • Number of attempts: 5
Reformat most common surnames - 782 entries

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

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

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 95
  • Position: #182 / 200
  • Number of attempts: 2
Change the content of a string - 1707 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #294 / 628
  • Number of attempts: 1
Deleting folded text - 388 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: #63 / 122
  • Number of attempts: 3
Sort and add attributes - 1539 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #144 / 594
  • Number of attempts: 3
Reconstruct the Sentence - 1677 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: #84 / 440
  • Number of attempts: 3
Flodder-challenge - 1401 entries

Replace the text the most efficient and win!

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

entered into 18 challenges

contributed 0 challenges