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

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #422 / 1268
  • Number of attempts: 8
Just the middle - 11457 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #842 / 4198
  • Number of attempts: 2
Align commas - 1095 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 / 246
  • Number of attempts: 4
camel riding - 793 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #136 / 281
  • Number of attempts: 3
attr_aligner - 3520 entries

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

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #744 / 3964
  • Number of attempts: 7
Assignment Alignment - 883 entries

line up the operators. Use spaces, not tabs.

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

Software Engineer @Globant Mastodon: https://t.co/vXAt0Cx9YP

entered into 7 challenges

contributed 0 challenges