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

Mess in revision history - 1143 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 40
  • Position: #222 / 242
  • Number of attempts: 1
Write Setters and Getters for PHP - 86 entries

Just simple automation of writing Setters and Getters like Doctrine might use.

  • Best score: 102
  • Best player score: 156
  • Position: #26 / 32
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 19
  • Position: #3444 / 3638
  • Number of attempts: 2
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 43
  • Position: #632 / 685
  • Number of attempts: 2
Readable Rubyhash - 239 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: 23
  • Best player score: 30
  • Position: #67 / 88
  • Number of attempts: 4
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: 27
  • Position: #248 / 467
  • Number of attempts: 7
Let's play some Ivmgolf - 1015 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #232 / 420
  • Number of attempts: 4
replacing each line of a block selection - 2800 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 42
  • Position: #724 / 735
  • Number of attempts: 1
switch variable - 4937 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1110 / 1707
  • Number of attempts: 6
Rolinh
Twitter:

entered into 9 challenges

contributed 0 challenges