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

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

  • Best score: 7
  • Best player score: 8
  • Position: #959 / 1873
  • Number of attempts: 1
Extract argument from function - 2283 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #585 / 739
  • Number of attempts: 2
That hyphen - 2530 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Position: #547 / 690
  • Number of attempts: 1
Just the middle - 11318 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3194 / 4152
  • 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 - 396 entries

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

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

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3078 / 4146
  • Number of attempts: 3
-a-b-c- - 3160 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #905 / 1124
  • Number of attempts: 1
Don't know what this is - 1961 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: #471 / 576
  • Number of attempts: 2
Where should I put the Newline? - 855 entries

Help me put the newline.

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

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 27
  • Position: #162 / 245
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10584 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #2998 / 3653
  • Number of attempts: 1
Hole-in-one - 1012 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: #291 / 302
  • Number of attempts: 1
Harder than "abcd > a b c d" - 76 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: #16 / 39
  • Number of attempts: 1
switch variable - 5012 entries

how fast can you switch two variable ?

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

entered into 16 challenges

contributed 0 challenges