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 - 303 entries

List the first 100 prime numbers.

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

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

  • Best score: 5
  • Best player score: 7
  • Position: #294 / 334
  • 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 - 206 entries

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

  • Best score: 24
  • Best player score: 37
  • Position: #60 / 86
  • Number of attempts: 1
Generate Fibonacci Numbers - 218 entries

Use your super vim powers to generate Fibonacci Numbers.

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

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

  • Best score: 16
  • Best player score: 23
  • Position: #43 / 90
  • Number of attempts: 1
Getters & Setters: Java - 189 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 / 53
  • Number of attempts: 2
Ruby 1.9 hashes - 1113 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 / 372
  • Number of attempts: 5
CSV to JSON - 143 entries

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

  • Best score: 56
  • Best player score: 93
  • Position: #24 / 59
  • Number of attempts: 2
Shebangs for all - 1719 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: #354 / 458
  • Number of attempts: 1
Another Mixed-Up Haiku - 206 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 37
  • Position: #70 / 77
  • Number of attempts: 1
Ruby 1.9 compat - 566 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: #144 / 216
  • Number of attempts: 7
Glenn
Twitter:

entered into 12 challenges

contributed 0 challenges