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

Changing date formats - 408 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 192
  • Position: #123 / 128
  • Number of attempts: 1
Swap columns and transform to CSV format - 295 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #71 / 110
  • Number of attempts: 2
Generate an entry for each month - 229 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: 58
  • Position: #43 / 64
  • Number of attempts: 2
Reorganize Pokémon - 579 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #94 / 157
  • Number of attempts: 3
Word completion - 233 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 633
  • Position: #63 / 63
  • Number of attempts: 1
Move to corresponding lines - 267 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #22 / 62
  • Number of attempts: 6
Rearrange array to one line - 707 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #90 / 170
  • Number of attempts: 2
New teacher - 1357 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #42 / 282
  • Number of attempts: 8
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #179 / 295
  • Number of attempts: 4
Contribute to keyboard mashing - 898 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #57 / 272
  • Number of attempts: 3
Changing URL path in CSS - 139 entries

What's the quickest way to swap out all the URLs in a CSS file? Is it wasted keystrokes using look-behinds and look-aheads? (I'm sorry for the delete/report--I made a mistake with the last one requiring an ugly search for graphic to replace with images. I just intended this to be a simple search and replace that might possibly generate some macros or normals solutions that are quicker)

  • Best score: 40
  • Best player score: 87
  • Position: #61 / 63
  • Number of attempts: 1
Remove noise from HTTP log - 724 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: 16
  • Position: #200 / 275
  • Number of attempts: 3
Sort and add attributes - 1499 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #401 / 581
  • Number of attempts: 5
hwatson381
Github:

entered into 13 challenges

contributed 0 challenges