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

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 192
  • Position: #177 / 185
  • Number of attempts: 1
Swap columns and transform to CSV format - 407 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #91 / 150
  • Number of attempts: 2
Generate an entry for each month - 360 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: #59 / 88
  • Number of attempts: 2
Reorganize Pokémon - 734 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #105 / 203
  • Number of attempts: 3
Word completion - 283 entries

Try to complete these options within 20 keystrokes.

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

Move the values to the corresponding lines.

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

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

  • Best score: 13
  • Best player score: 20
  • Position: #99 / 187
  • Number of attempts: 2
New teacher - 1453 entries

Update the details of the new CS teacher.

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #184 / 303
  • 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 - 11546 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3234 / 4232
  • 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 - 731 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: #202 / 277
  • Number of attempts: 3
Shebangs for all - 2059 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 / 524
  • Number of attempts: 7
Sort and add attributes - 1545 entries

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

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

entered into 17 challenges

contributed 0 challenges