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

Wrap the text of an email message to 79 characters - 852 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #59 / 441
  • Number of attempts: 1
Turn this csv list into queries - 252 entries

Transform each line of this csv file into a MySQL-ready INSERT query.

  • Best score: 98
  • Best player score: 127
  • Position: #59 / 101
  • Number of attempts: 1
The Cake is a Lie - 1389 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #424 / 538
  • Number of attempts: 1
Reformat a C golf submission - 629 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 37
  • Position: #158 / 214
  • Number of attempts: 2
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #439 / 639
  • Number of attempts: 3
Braces or Brackets? - 1140 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 42
  • Position: #131 / 349
  • Number of attempts: 4
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #680 / 841
  • Number of attempts: 1
Flodder-challenge - 1443 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 42
  • Position: #277 / 369
  • Number of attempts: 1
Simple text editing with Vim - 13419 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #3364 / 3846
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7508 entries

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

  • Best score: 7
  • Best player score: 63
  • Position: #1697 / 1847
  • Number of attempts: 2
Dave Bradford
Twitter:

entered into 10 challenges

contributed 0 challenges