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 - 33801 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: #5449 / 7459
  • Number of attempts: 3
Swap values - 4651 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 22
  • Position: #1199 / 1278
  • Number of attempts: 1
V to the i - 4826 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #1770 / 1900
  • Number of attempts: 2
Just the middle - 11523 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4040 / 4222
  • 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 - 7971 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Position: #1966 / 2145
  • Number of attempts: 3
I forgot quotes - 16075 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4037 / 4198
  • Number of attempts: 2
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Position: #1065 / 1138
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10703 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3392 / 3696
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7309 entries

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

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

entered into 11 challenges

contributed 0 challenges