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 - 32910 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: #5326 / 7271
  • Number of attempts: 3
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 22
  • Position: #1164 / 1241
  • Number of attempts: 1
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #1730 / 1857
  • Number of attempts: 2
Just the middle - 11140 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #3939 / 4113
  • Number of attempts: 2
Wrap text in quotes - 338 entries

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

  • Best score: 16
  • Best player score: 40
  • Position: #114 / 115
  • Number of attempts: 2
underscore_to_camelCase - 148 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: #75 / 75
  • Number of attempts: 2
Vice versa - 7522 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Position: #1882 / 2044
  • Number of attempts: 3
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #3955 / 4115
  • Number of attempts: 2
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Position: #1041 / 1112
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3334 / 3637
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6015 entries

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

  • Best score: 32
  • Best player score: 41
  • Position: #835 / 1482
  • Number of attempts: 3
Sebastian Pfluegelm
Twitter:

entered into 11 challenges

contributed 0 challenges