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

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

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

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

  • Best score: 16
  • Best player score: 17
  • Position: #8 / 19
  • Number of attempts: 2
Generate an entry for each month - 85 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: #27 / 29
  • Number of attempts: 1
Move to corresponding lines - 241 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #21 / 53
  • Number of attempts: 6
Rearrange array to one line - 600 entries

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

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

There is one special character per line

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

Update the details of the new CS teacher.

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

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #45 / 274
  • Number of attempts: 3
Quicksort - 1945 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: #262 / 429
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 766 entries

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #744 / 1624
  • Number of attempts: 4
Going underground.... - 356 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: #14 / 128
  • Number of attempts: 6
Split the words - 368 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: #39 / 111
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10663 entries

A HAPPY NEW YEAR 2014 !

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

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

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

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

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

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 21
  • Position: #27 / 163
  • Number of attempts: 12
Hatsuyume - 532 entries

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

  • Best score: 15
  • Best player score: 17
  • Position: #21 / 186
  • Number of attempts: 13
Context insensitive completion 0 - 577 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 / 246
  • Number of attempts: 4
Context Insensitive completion 1 - 498 entries

Finish writing this simple Python HTTP server.

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #27 / 265
  • Number of attempts: 8
Reformat most common surnames - 717 entries

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

  • Best score: 23
  • Best player score: 25
  • Position: #67 / 210
  • Number of attempts: 5
Change the content of a string - 1580 entries

This docstring is a complete lie. Fix it.

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

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

  • Best score: 33
  • Best player score: 33
  • Position: #292 / 563
  • Number of attempts: 4
Reconstruct the Sentence - 1507 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: #148 / 412
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3651 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #48 / 785
  • Number of attempts: 10
Simple text editing with Vim - 12792 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 / 3689
  • Number of attempts: 4
countime
Github:

entered into 28 challenges

contributed 0 challenges