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

Remove adjacent duplicates - 453 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 34
  • Position: #74 / 119
  • Number of attempts: 4
Harder than "abcd > a b c d" - 99 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 24
  • Position: #29 / 44
  • Number of attempts: 2
lamb had a little Mary - 618 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 33
  • Position: #69 / 169
  • Number of attempts: 8
Shebangs for all - 1999 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Position: #76 / 516
  • Number of attempts: 7
Simple text editing with Vim - 12823 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2025 / 3699
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7010 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 41
  • Position: #938 / 1713
  • Number of attempts: 9
Eran
Github:

entered into 6 challenges

contributed 0 challenges