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

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 192
  • Position: #189 / 197
  • Number of attempts: 1
Swap columns and transform to CSV format - 447 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #96 / 162
  • Number of attempts: 2
Generate an entry for each month - 372 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: #62 / 92
  • Number of attempts: 2
Reorganize Pokémon - 829 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #112 / 226
  • Number of attempts: 3
Word completion - 284 entries

Try to complete these options within 20 keystrokes.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #27 / 72
  • Number of attempts: 6
Rearrange array to one line - 840 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #104 / 197
  • Number of attempts: 2
New teacher - 1480 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #45 / 310
  • Number of attempts: 8
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #185 / 307
  • Number of attempts: 4
Contribute to keyboard mashing - 903 entries

Speak in tongues

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3237 / 4240
  • Number of attempts: 3
Missing Library and a Typo - 952 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: #30 / 222
  • Number of attempts: 7
Changing URL path in CSS - 144 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: #63 / 65
  • Number of attempts: 1
Let's play some Ivmgolf - 1141 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 11
  • Position: #383 / 453
  • Number of attempts: 4
Remove noise from HTTP log - 741 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: #203 / 279
  • Number of attempts: 3
Shebangs for all - 2090 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 / 529
  • Number of attempts: 7
Sort and add attributes - 1560 entries

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

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

entered into 17 challenges

contributed 0 challenges