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

Python Hello World! Reformatting - 1006 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 55
  • Position: #370 / 383
  • Number of attempts: 1
remove dupes from array - 1358 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Position: #20 / 336
  • Number of attempts: 7
Ruby 1.9 hashes - 1260 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: 39
  • Position: #410 / 410
  • Number of attempts: 1
The Cake is a Lie - 1374 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #107 / 534
  • Number of attempts: 8
Change the content of a string - 1649 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #531 / 609
  • Number of attempts: 2
Braces or Brackets? - 1073 entries

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

  • Best score: 34
  • Best player score: 188
  • Position: #330 / 331
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3795 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 19
  • Position: #202 / 816
  • Number of attempts: 12
Simple text editing with Vim - 13122 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #18 / 3774
  • Number of attempts: 15
Reformat/Refactor a Golfer Class - 7247 entries

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

  • Best score: 10
  • Best player score: 82
  • Position: #1734 / 1789
  • Number of attempts: 2
Ed Gibbs
Twitter:

Software Developer

entered into 9 challenges

contributed 0 challenges