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

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

  • Best score: 7
  • Best player score: 13
  • Position: #780 / 1680
  • 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 - 408 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 222
  • Number of attempts: 1
Ruby 1.9 hashes - 1315 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: #206 / 421
  • 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 - 2105 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: #260 / 534
  • Number of attempts: 1
82 bottles of beer on the wall - 330 entries

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

  • Best score: 106
  • Best player score: 122
  • Position: #47 / 150
  • Number of attempts: 1
Reverse and count - 502 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: #33 / 182
  • 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 - 875 entries

You did the simple deletion, now reverse it.

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

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #88 / 420
  • Number of attempts: 1
Hatsuyume - 583 entries

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

  • Best score: 15
  • Best player score: 24
  • Position: #71 / 195
  • 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 - 1422 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #6 / 546
  • 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 - 536 entries

Finish writing this simple Python HTTP server.

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

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #139 / 357
  • 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 - 660 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 41
  • Position: #109 / 249
  • Number of attempts: 2
Remember FizzBuzz? - 837 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 101
  • Position: #199 / 214
  • Number of attempts: 1
Reconstruct the Sentence - 1763 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: #304 / 461
  • Number of attempts: 1
Simple text editing with Vim - 13682 entries

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

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

entered into 28 challenges

contributed 0 challenges