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 - 33969 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: #5469 / 7502
  • Number of attempts: 3
Swap values - 4701 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 22
  • Position: #1207 / 1290
  • Number of attempts: 1
V to the i - 4860 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #1777 / 1910
  • Number of attempts: 2
Just the middle - 11582 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4056 / 4243
  • Number of attempts: 2
Wrap text in quotes - 374 entries

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

  • Best score: 16
  • Best player score: 40
  • Position: #122 / 123
  • Number of attempts: 2
underscore_to_camelCase - 187 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: #84 / 84
  • Number of attempts: 2
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Position: #1972 / 2153
  • Number of attempts: 3
I forgot quotes - 16178 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4053 / 4217
  • Number of attempts: 2
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Position: #1070 / 1143
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3403 / 3711
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7584 entries

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

  • Best score: 7
  • Best player score: 41
  • Position: #959 / 1872
  • Number of attempts: 3
Sebastian Pfluegelm
Twitter:

entered into 11 challenges

contributed 0 challenges