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: 59
  • Position: #66 / 109
  • Number of attempts: 2
Search and Replace 0 - 5162 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #777 / 1675
  • Number of attempts: 2
Return the cow - 81 entries

This cow is too verbose. Give it a lesson.

  • Best score: 52
  • Best player score: 65
  • Position: #17 / 32
  • Number of attempts: 1
Generate Fibonacci Numbers - 334 entries

Use your super vim powers to generate Fibonacci Numbers.

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

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

  • Best score: 16
  • Best player score: 23
  • Position: #51 / 101
  • Number of attempts: 1
Solve the Sokoban - 202 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 32
  • Position: #56 / 76
  • Number of attempts: 1
The holy-grail may help - 405 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 221
  • Number of attempts: 1
Ruby 1.9 hashes - 1313 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: #205 / 419
  • Number of attempts: 3
CSV to JSON - 178 entries

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

  • Best score: 56
  • Best player score: 104
  • Position: #34 / 67
  • Number of attempts: 1
Shebangs for all - 2103 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: #259 / 533
  • Number of attempts: 1
82 bottles of beer on the wall - 329 entries

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

  • Best score: 106
  • Best player score: 122
  • Position: #47 / 149
  • Number of attempts: 1
Reverse and count - 501 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: #32 / 181
  • Number of attempts: 2
Letters are numbers - 179 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: #43 / 78
  • Number of attempts: 1
Another Mixed-Up Haiku - 280 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 23
  • Position: #43 / 92
  • Number of attempts: 1
Reverse Simple Deletion - 874 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #85 / 466
  • Number of attempts: 1
Increment, increment, increment.... - 709 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #87 / 417
  • Number of attempts: 1
Hatsuyume - 582 entries

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

  • Best score: 15
  • Best player score: 24
  • Position: #70 / 194
  • Number of attempts: 1
Dumb to smart - 116 entries

Turn dumb quote to smart vim's way.

  • Best score: 27
  • Best player score: 31
  • Position: #28 / 60
  • Number of attempts: 2
The Cake is a Lie - 1418 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #6 / 543
  • Number of attempts: 1
Remove Accent off the Letter - 158 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 62
  • Position: #24 / 54
  • Number of attempts: 1
Context Insensitive completion 1 - 533 entries

Finish writing this simple Python HTTP server.

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

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #139 / 356
  • Number of attempts: 2
Linear congruential generator - 157 entries

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

  • Best score: 28
  • Best player score: 34
  • Position: #41 / 57
  • Number of attempts: 1
Reformat some Python - 659 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 41
  • Position: #108 / 248
  • Number of attempts: 2
Remember FizzBuzz? - 826 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 101
  • Position: #196 / 210
  • Number of attempts: 1
Reconstruct the Sentence - 1754 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: 23
  • Position: #301 / 458
  • Number of attempts: 1
Simple text editing with Vim - 13644 entries

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

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

entered into 28 challenges

contributed 0 challenges