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: 115
  • Position: #86 / 107
  • Number of attempts: 3
Generate Fibonacci Numbers - 289 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 20
  • Position: #29 / 102
  • Number of attempts: 5
A Simple One - 1064 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #57 / 670
  • Number of attempts: 1
82 bottles of beer on the wall - 313 entries

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

  • Best score: 106
  • Best player score: 126
  • Position: #60 / 146
  • Number of attempts: 3
Reverse and count - 486 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: 26
  • Position: #94 / 179
  • 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: 18
  • Position: #161 / 236
  • Number of attempts: 2
Reverse Simple Deletion - 857 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #128 / 461
  • Number of attempts: 2
Increment, increment, increment.... - 701 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #99 / 413
  • Number of attempts: 1
Hatsuyume - 548 entries

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

  • Best score: 15
  • Best player score: 29
  • Position: #122 / 189
  • Number of attempts: 2
The Cake is a Lie - 1374 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #1 / 534
  • Number of attempts: 1
Fix the Haiku - 320 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 34
  • Position: #26 / 115
  • Number of attempts: 4
Context insensitive completion 0 - 590 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: 7
  • Position: #12 / 249
  • Number of attempts: 3
Context Insensitive completion 1 - 512 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 19
  • Position: #172 / 248
  • Number of attempts: 2
Almost encrypted - 204 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #13 / 146
  • Number of attempts: 1
Make Fancy Header - 1070 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #142 / 348
  • Number of attempts: 2
Reformat some Python - 627 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 43
  • Position: #125 / 240
  • Number of attempts: 2
Reverse characters in a line - 778 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: 18
  • Position: #177 / 268
  • Number of attempts: 1
Remember FizzBuzz? - 745 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 56
  • Position: #75 / 195
  • Number of attempts: 7
Change the content of a string - 1662 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #412 / 613
  • Number of attempts: 2
Sort and add attributes - 1507 entries

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

  • Best score: 33
  • Best player score: 37
  • Position: #453 / 584
  • Number of attempts: 3
Reconstruct the Sentence - 1651 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: #11 / 435
  • Number of attempts: 8
Braces or Brackets? - 1074 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 57
  • Position: #291 / 332
  • Number of attempts: 2
Simple text editing with Vim - 13143 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2178 / 3777
  • Number of attempts: 6
clint tseng
Twitter:

i believe in the wholeness of things • i fight for the users • i make things • i play music

entered into 23 challenges

contributed 0 challenges