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

Swap values - 4401 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #411 / 1233
  • Number of attempts: 8
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #842 / 4091
  • Number of attempts: 2
Align commas - 1000 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Position: #52 / 231
  • Number of attempts: 4
camel riding - 734 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #130 / 263
  • Number of attempts: 3
attr_aligner - 3350 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #128 / 678
  • Number of attempts: 17
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #727 / 3905
  • Number of attempts: 7
Assignment Alignment - 722 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 18
  • Position: #41 / 202
  • Number of attempts: 11
Angel Chiang
Twitter:

Maker of stuff

entered into 7 challenges

contributed 0 challenges