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

Words in parens - 12083 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 9
Count both ways - 918 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 4
Make it more readable - 1812 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
V to the i - 4377 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
Simple text editing with Vim - 11056 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 10
Basic renumbering - 5155 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Number of attempts: 5
Change the content of a string - 1267 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 6
A Simple One - 854 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
  • Number of attempts: 3
Reformat most common surnames - 538 entries

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

  • Best score: 23
  • Best player score: 26
  • Number of attempts: 11
Just the middle - 10458 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
I forgot quotes - 14504 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 13
Wrap the text of an email message to 79 characters - 517 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 3
The Cake is a Lie - 1166 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 11
O Christmas Tree - 99 entries

Design a macro that makes trees grow (or ASCII triangles, if that's too hard).

  • Best score: 22
  • Best player score: 25
  • Number of attempts: 3
Add fold markers to a .c file - 447 entries

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

  • Best score: 30
  • Best player score: 30
  • Number of attempts: 8
Flodder-challenge - 819 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 39
  • Number of attempts: 3
Sort and add attributes - 1113 entries

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

  • Best score: 33
  • Best player score: 33
  • Number of attempts: 4
Braces or Brackets? - 644 entries

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

  • Best score: 34
  • Best player score: 40
  • Number of attempts: 13
Sudoku table - 58 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 92
  • Number of attempts: 1
Vice versa - 6932 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Number of attempts: 1
attr_aligner - 3245 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 44
  • Number of attempts: 1
Enumerate words - 225 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 25
  • Number of attempts: 9
Reconstruct the Sentence - 1038 entries

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

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 6
Remove noise from HTTP log - 624 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 7
Collect List - 3930 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5694 entries

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

  • Best score: 32
  • Best player score: 33
  • Number of attempts: 14

Contributed Challenges

Make it more readable - 1812 entries

Insert blank lines to make it more organized and readable

paste indent correction - JS - 76 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

Sudoku table - 58 entries

Make this simple sudoku table look nice and legible.

Ali Moeeny
Twitter:

Founder @drddxapp Used to be all about neurons. Now it's all that bits at the junction of quantified self and electronic medical records. http://t.co/eU4Ap63sO1

entered into 26 challenges

contributed 3 challenges