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

I forgot quotes - 12503 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 1
Words in parens - 11286 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Swap values - 3713 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Vice versa - 6177 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Just the middle - 9573 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
Letter case trickery - 1450 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 3
comments galore - 910 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 1
Switch function arguments - 1843 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Michael Potter
Twitter:

entered into 8 challenges

contributed 0 challenges