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 - 907 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: 45
  • Position: #255 / 353
  • Number of attempts: 2
Ruby 1.9 hashes - 1177 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: 15
  • Position: #241 / 387
  • Number of attempts: 3
A Simple One - 957 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #104 / 624
  • Number of attempts: 3
Reverse and count - 420 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 46
  • Position: #157 / 161
  • Number of attempts: 1
Increment, increment, increment.... - 599 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #129 / 382
  • Number of attempts: 1
Indentation - 454 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 21
  • Best player score: 30
  • Position: #100 / 161
  • Number of attempts: 2
The Cake is a Lie - 1234 entries

Correct the capitalization of each word

  • Best score: 3
  • Best player score: 10
  • Position: #298 / 497
  • Number of attempts: 3
Context insensitive completion 0 - 476 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 7
  • Position: #18 / 224
  • Number of attempts: 2
Make Fancy Header - 983 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 22
  • Position: #260 / 331
  • Number of attempts: 2
Joshua Flanagan
Twitter:

entered into 9 challenges

contributed 0 challenges