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

Refactor static member invocation - 180 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 39
  • Number of attempts: 2
Mute the second method of this script - 415 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 1
That hyphen - 2236 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 1
V to the i - 4054 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 495 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Ruby 1.9 hashes - 1080 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 1
Hatsuyume - 365 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 16
  • Best player score: 27
  • Number of attempts: 1
Simple text editing with Vim - 10599 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 23
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9657 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 2
Swap the operands under comparison - 223 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 26
  • Number of attempts: 2
I forgot quotes - 12412 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 1
Change the content of a string - 1245 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Number of attempts: 1
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Search and Replace 0 - 4187 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Kristijan Husak
Twitter:

Web Developer

entered into 14 challenges

contributed 0 challenges