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

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 59
  • Position: #53 / 91
  • Number of attempts: 2
Search and Replace 0 - 4534 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #676 / 1507
  • 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 - 218 entries

Use your super vim powers to generate Fibonacci Numbers.

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

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

  • Best score: 16
  • Best player score: 23
  • Position: #45 / 90
  • Number of attempts: 1
Solve the Sokoban - 158 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 32
  • Position: #51 / 69
  • Number of attempts: 1
The holy-grail may help - 304 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 190
  • Number of attempts: 1
Ruby 1.9 hashes - 1113 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: #180 / 372
  • Number of attempts: 3
CSV to JSON - 143 entries

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

  • Best score: 56
  • Best player score: 104
  • Position: #30 / 59
  • Number of attempts: 1
Shebangs for all - 1719 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: #225 / 458
  • Number of attempts: 1
82 bottles of beer on the wall - 280 entries

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

  • Best score: 107
  • Best player score: 122
  • Position: #42 / 131
  • Number of attempts: 1
Reverse and count - 403 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: #15 / 153
  • Number of attempts: 2
Letters are numbers - 127 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: #37 / 66
  • Number of attempts: 1
Another Mixed-Up Haiku - 206 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 23
  • Position: #37 / 77
  • Number of attempts: 1
Reverse Simple Deletion - 739 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #68 / 418
  • Number of attempts: 1
Increment, increment, increment.... - 531 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #40 / 357
  • Number of attempts: 1
Hatsuyume - 368 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #40 / 154
  • Number of attempts: 1
Dumb to smart - 82 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 31
  • Position: #21 / 49
  • Number of attempts: 2
The Cake is a Lie - 1168 entries

Correct the capitalization of each word

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

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 62
  • Position: #18 / 46
  • Number of attempts: 1
Context Insensitive completion 1 - 405 entries

Finish writing this simple Python HTTP server.

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

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #122 / 313
  • Number of attempts: 2
Linear congruential generator - 108 entries

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

  • Best score: 28
  • Best player score: 34
  • Position: #34 / 46
  • Number of attempts: 1
Reformat some Python - 547 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 41
  • Position: #92 / 217
  • Number of attempts: 2
Remember FizzBuzz? - 548 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 101
  • Position: #148 / 157
  • Number of attempts: 1
Reconstruct the Sentence - 1045 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: #215 / 328
  • Number of attempts: 1
Simple text editing with Vim - 11365 entries

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

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

entered into 28 challenges

contributed 0 challenges