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

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

  • Best score: 24
  • Best player score: 49
  • Position: #84 / 96
  • Number of attempts: 2
Recursively Palindrome - 267 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 31
  • Position: #57 / 75
  • Number of attempts: 2
imports alignment (python) - 700 entries

Align as one import per line.

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

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

  • Best score: 16
  • Best player score: 21
  • Position: #41 / 98
  • Number of attempts: 2
Rotating Philosophers Problem - 410 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: #111 / 166
  • Number of attempts: 5
expand a list comprehension (python) - 333 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: #55 / 109
  • Number of attempts: 2
Numbering a List - 1932 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Position: #360 / 653
  • Number of attempts: 3
Shebangs for all - 1999 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: #411 / 516
  • Number of attempts: 1
Reverse and count - 476 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: #100 / 177
  • Number of attempts: 4
Indentation - 544 entries

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

  • Best score: 20
  • Best player score: 40
  • Position: #155 / 179
  • Number of attempts: 1
The Cake is a Lie - 1349 entries

Correct the capitalization of each word

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

Finish writing this simple Python HTTP server.

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

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

  • Best score: 33
  • Best player score: 35
  • Position: #397 / 570
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3691 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #442 / 794
  • Number of attempts: 1
Simple text editing with Vim - 12856 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #858 / 3707
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7023 entries

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

  • Best score: 28
  • Best player score: 38
  • Position: #598 / 1720
  • Number of attempts: 1
Avinash Baliga
Twitter:

entered into 16 challenges

contributed 0 challenges