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

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

  • Best score: 5
  • Best player score: 6
  • Position: #373 / 452
  • Number of attempts: 1
Search and Replace 0 - 5162 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 16
  • Position: #1176 / 1675
  • Number of attempts: 1
Interweave two blocks of text - 692 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 17
  • Position: #95 / 217
  • Number of attempts: 1
Python Hello World! Reformatting - 1052 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 45
  • Position: #282 / 400
  • Number of attempts: 1
Line Zipper - 480 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #131 / 217
  • Number of attempts: 1
The holy-grail may help - 405 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 17
  • Position: #172 / 221
  • Number of attempts: 1
Shebangs for all - 2103 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: 14
  • Position: #219 / 533
  • Number of attempts: 1
A Simple One - 1093 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: #9 / 681
  • Number of attempts: 1
Table Reshuffle - 468 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 32
  • Position: #75 / 145
  • Number of attempts: 1
Reverse and count - 501 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: #97 / 181
  • Number of attempts: 3
Sorting paragraphs - 568 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 43
  • Position: #136 / 169
  • Number of attempts: 1
The Cake is a Lie - 1418 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #42 / 543
  • Number of attempts: 3
Context insensitive completion 0 - 607 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #25 / 256
  • Number of attempts: 1
Context Insensitive completion 1 - 533 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #38 / 252
  • Number of attempts: 2
Make Fancy Header - 1109 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #164 / 356
  • Number of attempts: 2
Reformat some Python - 659 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 41
  • Position: #107 / 248
  • Number of attempts: 2
Reformat a C golf submission - 681 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: 33
  • Position: #126 / 222
  • Number of attempts: 1
Reformat most common surnames - 837 entries

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

  • Best score: 23
  • Best player score: 29
  • Position: #120 / 239
  • Number of attempts: 2
Get rid of html tags - 465 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 17
  • Position: #68 / 262
  • Number of attempts: 1
Deleting folded text - 429 entries

The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.

  • Best score: 17
  • Best player score: 22
  • Position: #85 / 131
  • Number of attempts: 1
Reconstruct the Sentence - 1754 entries

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

  • Best score: 19
  • Best player score: 21
  • Position: #187 / 458
  • Number of attempts: 1
Simple text editing with Vim - 13644 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #800 / 3906
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 51
  • Position: #1500 / 1893
  • Number of attempts: 2
Pierre
Twitter:

entered into 23 challenges

contributed 0 challenges