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

Cartesian product - 217 entries

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

  • Best score: 24
  • Best player score: 49
  • Position: #80 / 91
  • Number of attempts: 2
Recursively Palindrome - 234 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 31
  • Position: #53 / 71
  • Number of attempts: 2
imports alignment (python) - 648 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 32
  • Position: #157 / 192
  • Number of attempts: 2
It'ss tooo coold too typpe todaay - 209 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #40 / 95
  • Number of attempts: 2
Rotating Philosophers Problem - 381 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 32
  • Position: #108 / 160
  • Number of attempts: 5
expand a list comprehension (python) - 291 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 53
  • Position: #52 / 104
  • Number of attempts: 2
Numbering a List - 1832 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Position: #340 / 627
  • Number of attempts: 3
Shebangs for all - 1777 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: 20
  • Position: #386 / 468
  • Number of attempts: 1
Reverse and count - 415 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: 26
  • Position: #88 / 159
  • Number of attempts: 4
Indentation - 452 entries

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

  • Best score: 21
  • Best player score: 40
  • Position: #141 / 160
  • Number of attempts: 1
The Cake is a Lie - 1215 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #91 / 491
  • Number of attempts: 1
Context Insensitive completion 1 - 436 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #65 / 223
  • Number of attempts: 2
Sort and add attributes - 1207 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 35
  • Position: #334 / 489
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #365 / 667
  • Number of attempts: 1
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #793 / 3418
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 38
  • Position: #547 / 1486
  • Number of attempts: 1
Avinash Baliga
Twitter:

entered into 16 challenges

contributed 0 challenges