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

Extract argument from function - 2429 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 14
  • Position: #307 / 773
  • Number of attempts: 2
Swap assigned value - 696 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #69 / 264
  • Number of attempts: 3
VimGolfNight - 604 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #50 / 357
  • Number of attempts: 1
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 15
  • Position: #17 / 310
  • Number of attempts: 5
Don't know what this is - 2070 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #155 / 596
  • Number of attempts: 3
Counting in binary - 556 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 39
  • Position: #77 / 118
  • Number of attempts: 2
Hole-in-one - 1041 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 16
  • Position: #27 / 308
  • Number of attempts: 6
Delete unwanted lines - 451 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 12
  • Position: #224 / 237
  • Number of attempts: 2
Vertical Limit - 2641 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 23
  • Position: #224 / 780
  • Number of attempts: 2
Switch function arguments - 2237 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #389 / 687
  • Number of attempts: 3
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #768 / 1766
  • Number of attempts: 3
The Cake is a Lie - 1419 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #155 / 544
  • Number of attempts: 2
Simple text editing with Vim - 13667 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1164 / 3914
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7723 entries

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

  • Best score: 7
  • Best player score: 38
  • Position: #662 / 1897
  • Number of attempts: 1
Joey Twiddle
Twitter:

entered into 14 challenges

contributed 0 challenges