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

V to the i - 4650 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #937 / 1863
  • Number of attempts: 2
Search and Replace 0 - 4743 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 15
  • Position: #1072 / 1572
  • Number of attempts: 1
That hyphen - 2522 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #301 / 689
  • Number of attempts: 3
Just the middle - 11283 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1556 / 4140
  • Number of attempts: 3
Refactoring useless Method away - 91 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 77
  • Position: #27 / 32
  • Number of attempts: 1
-a-b-c- - 3142 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #896 / 1120
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10564 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1921 / 3646
  • Number of attempts: 1
Geoff Huston
Twitter:

entered into 7 challenges

contributed 0 challenges