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

V to the i - 4647 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #280 / 1861
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 608 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #86 / 363
  • Number of attempts: 3
Just the middle - 11281 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #430 / 4139
  • Number of attempts: 6
Basic renumbering - 5477 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Position: #775 / 1238
  • Number of attempts: 5
Vice versa - 7598 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1834 / 2059
  • Number of attempts: 1
Sudoku table - 58 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 92
  • Position: #27 / 27
  • Number of attempts: 1
O Christmas Tree - 102 entries

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

  • Best score: 22
  • Best player score: 25
  • Position: #7 / 41
  • Number of attempts: 3
Collect List - 4203 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1018 / 1173
  • Number of attempts: 2
I forgot quotes - 15808 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #265 / 4124
  • Number of attempts: 13
Count both ways - 968 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Position: #107 / 344
  • Number of attempts: 4
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 44
  • Position: #635 / 685
  • Number of attempts: 1
Words in parens - 12775 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1265 / 3926
  • Number of attempts: 9
Enumerate words - 241 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 25
  • Position: #26 / 86
  • Number of attempts: 9
Remove noise from HTTP log - 668 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
  • Position: #60 / 264
  • Number of attempts: 7
Make it more readable - 1923 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #111 / 632
  • Number of attempts: 1
A Simple One - 968 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
  • Position: #318 / 629
  • Number of attempts: 3
The Cake is a Lie - 1238 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #111 / 497
  • Number of attempts: 11
Reformat most common surnames - 599 entries

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

  • Best score: 23
  • Best player score: 26
  • Position: #61 / 188
  • Number of attempts: 11
Change the content of a string - 1393 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #63 / 531
  • Number of attempts: 6
Sort and add attributes - 1226 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #85 / 495
  • Number of attempts: 4
Add fold markers to a .c file - 504 entries

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

  • Best score: 30
  • Best player score: 30
  • Position: #14 / 159
  • Number of attempts: 8
Reconstruct the Sentence - 1195 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
  • Position: #36 / 352
  • Number of attempts: 6
Braces or Brackets? - 725 entries

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

  • Best score: 34
  • Best player score: 40
  • Position: #66 / 255
  • Number of attempts: 13
Flodder-challenge - 941 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 39
  • Position: #194 / 276
  • Number of attempts: 3
Simple text editing with Vim - 11753 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #42 / 3447
  • Number of attempts: 10
Reformat/Refactor a Golfer Class - 6141 entries

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

  • Best score: 32
  • Best player score: 33
  • Position: #200 / 1514
  • Number of attempts: 14

Contributed Challenges

Make it more readable - 1923 entries

Insert blank lines to make it more organized and readable

paste indent correction - JS - 97 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 MD PhD
Twitter:

Now at Suprafrontal. X engineer at Interologic, x CTO @floreotech, x NIH fellow, xCTO at CrowdStitch, x CTO Rasanic private chef to my wife

entered into 26 challenges

contributed 3 challenges