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

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

  • Best score: 12
  • Best player score: 12
  • Position: #34 / 1541
  • Number of attempts: 3
A Simple One - 924 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: #72 / 612
  • Number of attempts: 2
Ruby 1.9 compat - 590 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: 24
  • Position: #212 / 225
  • Number of attempts: 2
Increment, increment, increment.... - 568 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #82 / 371
  • Number of attempts: 1
The Cake is a Lie - 1203 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #275 / 488
  • Number of attempts: 1
Context Insensitive completion 1 - 427 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #16 / 222
  • Number of attempts: 2
Reverse characters in a line - 645 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: 15
  • Position: #103 / 236
  • Number of attempts: 1
Change the content of a string - 1350 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #205 / 521
  • Number of attempts: 1
Dan Smith
Twitter:

Software developer in C/C++, C#, Java, and Ruby. Linux user. Aficionado for intelligent, artistic anime and video games.

entered into 8 challenges

contributed 0 challenges