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

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 192
  • Position: #164 / 170
  • Number of attempts: 1
Swap columns and transform to CSV format - 386 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #89 / 143
  • Number of attempts: 2
Generate an entry for each month - 351 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: #57 / 84
  • Number of attempts: 2
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #101 / 190
  • Number of attempts: 3
Word completion - 279 entries

Try to complete these options within 20 keystrokes.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #24 / 66
  • Number of attempts: 6
Rearrange array to one line - 758 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #96 / 182
  • Number of attempts: 2
New teacher - 1419 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #43 / 299
  • Number of attempts: 8
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #182 / 300
  • Number of attempts: 4
Contribute to keyboard mashing - 900 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #57 / 273
  • Number of attempts: 3
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3233 / 4230
  • Number of attempts: 3
Missing Library and a Typo - 943 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 15
  • Position: #29 / 221
  • Number of attempts: 7
Changing URL path in CSS - 143 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: #62 / 64
  • Number of attempts: 1
Let's play some Ivmgolf - 1138 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 11
  • Position: #382 / 450
  • Number of attempts: 4
Remove noise from HTTP log - 729 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: #201 / 276
  • Number of attempts: 3
Shebangs for all - 2049 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: 11
  • Position: #78 / 523
  • Number of attempts: 7
Sort and add attributes - 1539 entries

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

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

entered into 17 challenges

contributed 0 challenges