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

Reformat/Refactor a Golfer Class - 5551 entries

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

  • Best score: 32
  • Best player score: 38
  • Number of attempts: 8
O Christmas Tree - 99 entries

Design a macro that makes trees grow (or ASCII triangles, if that's too hard).

  • Best score: 22
  • Best player score: 31
  • Number of attempts: 1
Vim tetris - 338 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 5
Braces or Brackets? - 627 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 69
  • Number of attempts: 1
Saving the hashes(#) - 1786 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: 20
  • Number of attempts: 8
Vice versa - 6177 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9677 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
V to the i - 4059 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Words in parens - 11286 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
Matthew Kirk
Twitter:

Author of Thoughtful Machine Learning (http://t.co/rzd15JbOZA), Ruby, Clojure, & Python. Conference Speaker. Independent consultant.

entered into 9 challenges

contributed 0 challenges