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 - 32953 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: #5268 / 7275
  • Number of attempts: 2
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #80 / 4114
  • Number of attempts: 7
Basic renumbering - 5436 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #321 / 1228
  • Number of attempts: 13
Create Leading Zeros - 205 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 50
  • Position: #67 / 77
  • Number of attempts: 1
Vice versa - 7535 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1408 / 2048
  • Number of attempts: 1
Separating firstname & lastname - 113 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 25
  • Position: #26 / 53
  • Number of attempts: 5
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #64 / 4115
  • Number of attempts: 5
attr_aligner - 3402 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 43
  • Position: #631 / 685
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2005 / 3919
  • Number of attempts: 3
Saving the hashes(#) - 1966 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 37
  • Position: #433 / 467
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 40
  • Position: #758 / 1486
  • Number of attempts: 3
eirc
Twitter:

Web Developer @ http://t.co/ifC6hGfn / http://t.co/Vixd6NDf

entered into 11 challenges

contributed 0 challenges