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

Well, swap the values...

  • Best score: 11
  • Best player score: 18
  • Position: #1122 / 1257
  • Number of attempts: 1
Just the middle - 11360 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3224 / 4164
  • Number of attempts: 1
Change attribute to getter - 133 entries

Wrap attributes with a getter method.

  • Best score: 24
  • Best player score: 24
  • Position: #1 / 57
  • Number of attempts: 4
Alsa configuration - 491 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 34
  • Position: #95 / 125
  • Number of attempts: 2
ASCII box - 325 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 33
  • Position: #98 / 104
  • Number of attempts: 1
Mute the second method of this script - 447 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #16 / 237
  • Number of attempts: 2
Condensed Cases - 788 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 15
  • Position: #159 / 242
  • Number of attempts: 2
I forgot quotes - 15931 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Position: #3407 / 4161
  • Number of attempts: 1
Sebastian
Twitter:

Kartoffel.

entered into 8 challenges

contributed 0 challenges