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

Prime Numbers - 326 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 43
  • Position: #30 / 96
  • Number of attempts: 7
Wrap the text of an email message to 79 characters - 576 entries

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

  • Best score: 5
  • Best player score: 7
  • Position: #310 / 352
  • Number of attempts: 1
Return the cow - 71 entries

This cow is too verbose. Give it a lesson.

  • Best score: 52
  • Best player score: 64
  • Position: #14 / 28
  • Number of attempts: 3
Cartesian product - 210 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 37
  • Position: #62 / 90
  • Number of attempts: 1
Generate Fibonacci Numbers - 251 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 20
  • Position: #31 / 94
  • Number of attempts: 3
It'ss tooo coold too typpe todaay - 207 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 23
  • Position: #44 / 93
  • Number of attempts: 1
Getters & Setters: Java - 190 entries

Boilerplate getters & setters - it's a tedious fact of life in Java, and probably the only thing that still pulls me back to an IDE. Perhaps someone knows a fast, pure vim way...

  • Best score: 89
  • Best player score: 114
  • Position: #26 / 54
  • Number of attempts: 2
Ruby 1.9 hashes - 1157 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: 12
  • Position: #1 / 382
  • Number of attempts: 5
CSV to JSON - 144 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 93
  • Position: #24 / 60
  • Number of attempts: 2
Shebangs for all - 1771 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 19
  • Position: #362 / 467
  • Number of attempts: 1
Another Mixed-Up Haiku - 220 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 37
  • Position: #74 / 81
  • Number of attempts: 1
Ruby 1.9 compat - 590 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 18
  • Position: #149 / 225
  • Number of attempts: 7
Glenn
Twitter:

entered into 12 challenges

contributed 0 challenges