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

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

  • Best score: 7
  • Best player score: 7
  • Position: #82 / 1915
  • Number of attempts: 4
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #54 / 4258
  • Number of attempts: 3
Space out the alphabet - 1696 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 18
  • Position: #213 / 458
  • Number of attempts: 2
Fix the XML - 1052 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 25
  • Position: #151 / 292
  • Number of attempts: 1
ASCII box - 379 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 33
  • Position: #105 / 112
  • Number of attempts: 1
Mute the second method of this script - 465 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #26 / 246
  • Number of attempts: 2
increment by column in XML - 168 entries

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

  • Best score: 19
  • Best player score: 26
  • Position: #38 / 58
  • Number of attempts: 4
I forgot quotes - 16239 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2205 / 4225
  • Number of attempts: 4
-a-b-c- - 3242 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #894 / 1147
  • Number of attempts: 1
120 Degrees - 517 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 26
  • Position: #113 / 147
  • Number of attempts: 1
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: 11
  • Position: #22 / 596
  • Number of attempts: 6
Two become one - 739 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 26
  • Position: #25 / 213
  • Number of attempts: 8
Where should I put the Newline? - 912 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #313 / 451
  • Number of attempts: 1
HTML formatting: vertical alignment for readability - 101 entries

We did this a VimGolf challenge at work and now that we have finished I want to see if you guys can come up with something even better than we could. Our best solution was 44 keystrokes.

  • Best score: 32
  • Best player score: 60
  • Position: #25 / 39
  • Number of attempts: 2
Vertical Limit - 2637 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #364 / 778
  • Number of attempts: 5
Juan-Lucas Picard
Twitter:

entered into 15 challenges

contributed 0 challenges