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

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

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

Delete the instructions at the top and bottom.

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

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 18
  • Position: #202 / 433
  • Number of attempts: 2
Fix the XML - 958 entries

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

  • Best score: 18
  • Best player score: 25
  • Position: #142 / 279
  • Number of attempts: 1
ASCII box - 317 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 33
  • Position: #95 / 102
  • Number of attempts: 1
Mute the second method of this script - 439 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #25 / 233
  • Number of attempts: 2
increment by column in XML - 144 entries

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

  • Best score: 19
  • Best player score: 26
  • Position: #33 / 52
  • Number of attempts: 4
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2143 / 4114
  • Number of attempts: 4
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #863 / 1112
  • Number of attempts: 1
120 Degrees - 441 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 26
  • Position: #106 / 140
  • Number of attempts: 1
Don't know what this is - 1948 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 / 571
  • Number of attempts: 6
Two become one - 703 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: #23 / 202
  • Number of attempts: 8
Where should I put the Newline? - 842 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #301 / 421
  • Number of attempts: 1
HTML formatting: vertical alignment for readability - 60 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: 33
  • Best player score: 60
  • Position: #20 / 32
  • Number of attempts: 2
Vertical Limit - 2367 entries

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

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

entered into 15 challenges

contributed 0 challenges