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

Exchanging Quotes - 788 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 32
  • Position: #49 / 217
  • Number of attempts: 7
Reverse and double space - 433 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 14
  • Position: #17 / 179
  • Number of attempts: 4
un-C-escape string - 53 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #20 / 47
  • Number of attempts: 1
switch variable - 4868 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #104 / 1691
  • Number of attempts: 7
The meaning - 517 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #74 / 332
  • Number of attempts: 2
Replacing some words - 405 entries

How fast could it be?

  • Best score: 17
  • Best player score: 37
  • Position: #123 / 142
  • Number of attempts: 1
remove dupes from array - 1266 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 23
  • Position: #189 / 322
  • Number of attempts: 4
A Simple One - 880 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: #265 / 589
  • Number of attempts: 1
Simple text editing with Vim - 11431 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #75 / 3357
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5864 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 37
  • Position: #477 / 1449
  • Number of attempts: 6
Christian Gaida
Twitter:

entered into 10 challenges

contributed 0 challenges