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

Simple, Practical, and Common - 33571 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 31
  • Position: #5420 / 7405
  • Number of attempts: 3
Swap values - 4609 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 22
  • Position: #1188 / 1266
  • Number of attempts: 1
V to the i - 4796 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 10
  • Position: #1762 / 1891
  • Number of attempts: 2
Just the middle - 11423 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4006 / 4185
  • Number of attempts: 2
Wrap text in quotes - 368 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 40
  • Position: #121 / 122
  • Number of attempts: 2
underscore_to_camelCase - 173 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 35
  • Position: #82 / 82
  • Number of attempts: 2
Vice versa - 7898 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Position: #1947 / 2124
  • Number of attempts: 3
I forgot quotes - 15967 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4014 / 4174
  • Number of attempts: 2
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Position: #1064 / 1137
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10656 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3375 / 3679
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6866 entries

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

  • Best score: 28
  • Best player score: 41
  • Position: #899 / 1681
  • Number of attempts: 3
Sebastian Pfluegelm
Twitter:

entered into 11 challenges

contributed 0 challenges