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

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

  • Best score: 30
  • Best player score: 32
  • Position: #48 / 216
  • 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 - 4863 entries

how fast can you switch two variable ?

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

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #74 / 330
  • 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 - 1260 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: #188 / 321
  • Number of attempts: 4
A Simple One - 870 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 / 581
  • Number of attempts: 1
Simple text editing with Vim - 11365 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 / 3337
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5804 entries

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

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

entered into 10 challenges

contributed 0 challenges