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]

42378 active golfers, 487043 entries, 612 challenges

Open VimGolf challenges

Reformat most common surnames - 758 entries

Reformat copy-pasted table into a list of the most common surnames

Remember FizzBuzz? - 747 entries

Output FizzBuzz to 100. Start with nothing.

Change the content of a string - 1690 entries

This docstring is a complete lie. Fix it.

Add fold markers to a .c file - 678 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

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

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

Reconstruct the Sentence - 1665 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

Sort and add attributes - 1521 entries

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

Braces or Brackets? - 1079 entries

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

Flodder-challenge - 1391 entries

Replace the text the most efficient and win!

Whitespace, empty lines and tabs - 3814 entries

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

Simple text editing with Vim - 13183 entries

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

Reformat/Refactor a Golfer Class - 7309 entries

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

VimGolf Chatter