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

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

  • Best score: 7
  • Best player score: 8
  • Position: #908 / 1912
  • Number of attempts: 2
Extract argument from function - 2401 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #313 / 768
  • Number of attempts: 6
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #229 / 4253
  • Number of attempts: 3
Interweave two blocks of text - 675 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 24
  • Position: #197 / 216
  • Number of attempts: 1
Mirror Symmetry - 830 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #185 / 270
  • Number of attempts: 2
camel riding - 798 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #168 / 283
  • Number of attempts: 2
Space out the alphabet - 1691 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #316 / 455
  • Number of attempts: 3
Fix the XML - 1050 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #253 / 291
  • Number of attempts: 3
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2110 / 4222
  • Number of attempts: 3
vim1001 - 315 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 27
  • Position: #95 / 111
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #899 / 1145
  • Number of attempts: 1
Count both ways - 1037 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #155 / 359
  • Number of attempts: 1
Refactor static member invocation - 211 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 39
  • Position: #48 / 65
  • Number of attempts: 3
Don't know what this is - 2048 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: #465 / 592
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10752 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1908 / 3713
  • Number of attempts: 1
attr_aligner - 3565 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 32
  • Position: #488 / 709
  • Number of attempts: 2
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2168 / 3988
  • Number of attempts: 1
Simple text editing with Vim - 13576 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #2733 / 3892
  • Number of attempts: 1
simonced
Twitter:

Internet developper, a bit musician.

entered into 18 challenges

contributed 0 challenges