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

Search and Replace 0 - 4792 entries

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

  • Best score: 12
  • Best player score: 21
  • Position: #1485 / 1585
  • Number of attempts: 1
Python Hello World! Reformatting - 939 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 48
  • Position: #317 / 365
  • Number of attempts: 1
Ruby 1.9 compat - 610 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: 23
  • Position: #215 / 230
  • Number of attempts: 3
Sorting paragraphs - 505 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 47
  • Position: #139 / 156
  • Number of attempts: 1
Turn this csv list into queries - 204 entries

Transform each line of this csv file into a MySQL-ready INSERT query.

  • Best score: 98
  • Best player score: 148
  • Position: #82 / 95
  • Number of attempts: 1
Context insensitive completion 0 - 512 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: 13
  • Position: #223 / 233
  • Number of attempts: 3
Context Insensitive completion 1 - 463 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 39
  • Position: #220 / 233
  • Number of attempts: 1
Reformat a C golf submission - 559 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 41
  • Position: #172 / 200
  • Number of attempts: 1
Reverse characters in a line - 711 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: 21
  • Position: #205 / 250
  • Number of attempts: 1
Andrew McDonough
Twitter:

London based ruby developer, currently CTO of tribesports.com

entered into 9 challenges

contributed 0 challenges