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: 8
  • Position: #908 / 1915
  • Number of attempts: 2
Extract argument from function - 2429 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #315 / 773
  • Number of attempts: 6
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #229 / 4258
  • Number of attempts: 3
Interweave two blocks of text - 692 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: #198 / 217
  • Number of attempts: 1
Mirror Symmetry - 845 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #188 / 273
  • Number of attempts: 2
camel riding - 817 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #170 / 285
  • Number of attempts: 2
Space out the alphabet - 1696 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #318 / 458
  • Number of attempts: 3
Fix the XML - 1052 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #254 / 292
  • Number of attempts: 3
I forgot quotes - 16239 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2113 / 4225
  • Number of attempts: 3
vim1001 - 331 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: #96 / 113
  • Number of attempts: 1
-a-b-c- - 3242 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #901 / 1147
  • Number of attempts: 1
Count both ways - 1053 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #157 / 362
  • Number of attempts: 1
Refactor static member invocation - 235 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: #51 / 68
  • Number of attempts: 3
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: 16
  • Position: #469 / 596
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1910 / 3717
  • Number of attempts: 1
attr_aligner - 3568 entries

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

  • Best score: 19
  • Best player score: 32
  • Position: #490 / 711
  • Number of attempts: 2
Words in parens - 13054 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2171 / 3991
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

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

Internet developper, a bit musician.

entered into 18 challenges

contributed 0 challenges