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: 59
  • Position: #62 / 101
  • Number of attempts: 2
Search and Replace 0 - 4790 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #726 / 1585
  • Number of attempts: 2
Return the cow - 71 entries

This cow is too verbose. Give it a lesson.

  • Best score: 52
  • Best player score: 65
  • Position: #15 / 28
  • Number of attempts: 1
Generate Fibonacci Numbers - 262 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 24
  • Position: #65 / 97
  • Number of attempts: 1
It'ss tooo coold too typpe todaay - 215 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 23
  • Position: #47 / 96
  • Number of attempts: 1
Solve the Sokoban - 164 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 32
  • Position: #52 / 72
  • Number of attempts: 1
The holy-grail may help - 345 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 205
  • Number of attempts: 1
Ruby 1.9 hashes - 1221 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 14
  • Position: #195 / 401
  • Number of attempts: 3
CSV to JSON - 172 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 104
  • Position: #32 / 65
  • Number of attempts: 1
Shebangs for all - 1912 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: 15
  • Position: #244 / 500
  • Number of attempts: 1
82 bottles of beer on the wall - 303 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 122
  • Position: #44 / 141
  • Number of attempts: 1
Reverse and count - 456 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 22
  • Position: #28 / 172
  • Number of attempts: 2
Letters are numbers - 150 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 30
  • Position: #40 / 73
  • Number of attempts: 1
Another Mixed-Up Haiku - 237 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 23
  • Position: #40 / 85
  • Number of attempts: 1
Reverse Simple Deletion - 832 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #79 / 454
  • Number of attempts: 1
Increment, increment, increment.... - 662 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #74 / 401
  • Number of attempts: 1
Hatsuyume - 457 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #55 / 175
  • Number of attempts: 1
Dumb to smart - 96 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 31
  • Position: #23 / 54
  • Number of attempts: 2
The Cake is a Lie - 1286 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #5 / 512
  • Number of attempts: 1
Remove Accent off the Letter - 106 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 62
  • Position: #19 / 49
  • Number of attempts: 1
Context Insensitive completion 1 - 459 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #35 / 232
  • Number of attempts: 2
Almost encrypted - 198 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #30 / 144
  • Number of attempts: 1
Make Fancy Header - 1014 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #128 / 338
  • Number of attempts: 2
Linear congruential generator - 129 entries

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

  • Best score: 28
  • Best player score: 34
  • Position: #38 / 50
  • Number of attempts: 1
Reformat some Python - 579 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 41
  • Position: #98 / 229
  • Number of attempts: 2
Remember FizzBuzz? - 654 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 101
  • Position: #168 / 177
  • Number of attempts: 1
Reconstruct the Sentence - 1363 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: 23
  • Position: #257 / 383
  • Number of attempts: 1
Simple text editing with Vim - 12280 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #764 / 3579
  • Number of attempts: 3
Aurélien Delahaye
Twitter:

entered into 28 challenges

contributed 0 challenges