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

Change to ascending order - 508 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 17
  • Position: #4 / 126
  • Number of attempts: 7
Swap columns and transform to CSV format - 452 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #14 / 164
  • Number of attempts: 2
Generate an entry for each month - 374 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 97
  • Position: #81 / 93
  • Number of attempts: 1
Move to corresponding lines - 322 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #26 / 74
  • Number of attempts: 6
Rearrange array to one line - 855 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 13
  • Position: #21 / 201
  • Number of attempts: 12
Find anomalies - 163 entries

There is one special character per line

  • Best score: 30
  • Best player score: 30
  • Position: #13 / 44
  • Number of attempts: 6
New teacher - 1494 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #18 / 312
  • Number of attempts: 8
Replace word while reserving first letter case - 664 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #27 / 126
  • Number of attempts: 12
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #45 / 307
  • Number of attempts: 3
Quicksort - 2098 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #276 / 467
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 858 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #316 / 444
  • Number of attempts: 8
Search and Replace 0 - 5102 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #744 / 1662
  • Number of attempts: 4
Going underground.... - 376 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 26
  • Position: #15 / 130
  • Number of attempts: 6
Split the words - 394 entries

Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.

  • Best score: 18
  • Best player score: 34
  • Position: #40 / 113
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1614 / 3711
  • Number of attempts: 2
Inconsistent real estate paste - 217 entries

Format a hand-typed real estate listing that uses inconsistent punctuation into four sections

  • Best score: 24
  • Best player score: 33
  • Position: #26 / 59
  • Number of attempts: 3
Insert a Markdown link - 466 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 23
  • Position: #43 / 155
  • Number of attempts: 4
Sorting paragraphs - 557 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 21
  • Position: #28 / 167
  • Number of attempts: 12
Hatsuyume - 557 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 17
  • Position: #23 / 192
  • Number of attempts: 13
Context insensitive completion 0 - 596 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: #129 / 252
  • Number of attempts: 4
Context Insensitive completion 1 - 514 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #166 / 249
  • Number of attempts: 3
Reverse characters in a line - 819 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 12
  • Position: #28 / 276
  • Number of attempts: 8
Reformat most common surnames - 809 entries

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

  • Best score: 23
  • Best player score: 25
  • Position: #71 / 234
  • Number of attempts: 5
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #238 / 647
  • Number of attempts: 3
Sort and add attributes - 1568 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #292 / 607
  • Number of attempts: 4
Reconstruct the Sentence - 1710 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: 20
  • Position: #158 / 451
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3974 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #48 / 850
  • Number of attempts: 10
Simple text editing with Vim - 13509 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #734 / 3874
  • Number of attempts: 4
countime
Github:

entered into 28 challenges

contributed 0 challenges