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 URL path in CSS - 136 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: 40
  • Position: #14 / 61
  • Number of attempts: 3
Create a pandoc compatible table - 185 entries

In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

  • Best score: 32
  • Best player score: 32
  • Position: #6 / 55
  • Number of attempts: 6
Shuffle and Sort - 210 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 19
  • Position: #19 / 66
  • Number of attempts: 3
Cleanining up 80 column concatenated text - 194 entries

1. Put the whole query on one line, remove the concatenation operators 2. Remove the double spaces that appear a few times in the query 3. Use string-interpolated variable statementPid rather than the ugly concatenation

  • Best score: 31
  • Best player score: 32
  • Position: #12 / 78
  • Number of attempts: 3
Inconsistent real estate paste - 185 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #19 / 56
  • Number of attempts: 5
Vertical Limit - 2487 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 23
  • Position: #183 / 748
  • Number of attempts: 2
Remove noise from HTTP log - 700 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: 15
  • Position: #35 / 272
  • Number of attempts: 3
Line Zipper - 454 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 13
  • Position: #47 / 212
  • Number of attempts: 3
remove dupes from array - 1345 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Position: #39 / 333
  • Number of attempts: 7
Numbering a List - 1869 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #229 / 646
  • Number of attempts: 4
Compile C - 366 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #61 / 133
  • Number of attempts: 3
Simple text editing with Vim - 12491 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Position: #89 / 3626
  • Number of attempts: 4
Daniel S
Twitter:

entered into 12 challenges

contributed 0 challenges