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

V to the i - 4641 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #950 / 1857
  • Number of attempts: 1
Extract argument from function - 2218 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #576 / 729
  • Number of attempts: 2
That hyphen - 2500 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Position: #542 / 683
  • Number of attempts: 1
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3162 / 4114
  • Number of attempts: 3
Refactoring useless Method away - 91 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 83
  • Position: #30 / 32
  • Number of attempts: 3
increment by column in XML - 146 entries

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

  • Best score: 19
  • Best player score: 31
  • Position: #48 / 53
  • Number of attempts: 1
Happy TvvO - 392 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #40 / 195
  • Number of attempts: 1
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3054 / 4116
  • Number of attempts: 3
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #894 / 1112
  • Number of attempts: 1
Don't know what this is - 1951 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: 16
  • Position: #467 / 572
  • Number of attempts: 2
Where should I put the Newline? - 845 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #134 / 422
  • Number of attempts: 1
Mess in revision history - 1143 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 27
  • Position: #160 / 242
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #2983 / 3638
  • Number of attempts: 1
Hole-in-one - 978 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: 26
  • Position: #287 / 298
  • Number of attempts: 1
Harder than "abcd > a b c d" - 75 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 20
  • Position: #15 / 38
  • Number of attempts: 1
switch variable - 4944 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1348 / 1708
  • Number of attempts: 1
Raynard, Jordan
Twitter:

entered into 16 challenges

contributed 0 challenges