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

Interweave two blocks of text - 546 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 23
  • Position: #177 / 197
  • Number of attempts: 1
Exchanging Quotes - 788 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 38
  • Position: #140 / 217
  • Number of attempts: 2
Switch function arguments - 1952 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #15 / 619
  • Number of attempts: 9
Append semicolon after expressions - 930 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #7 / 377
  • Number of attempts: 4
Remove noise from HTTP log - 653 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: #25 / 256
  • Number of attempts: 3
formatted text to markdown - 175 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 78
  • Position: #31 / 63
  • Number of attempts: 1
Numbering a List - 1797 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Position: #275 / 614
  • Number of attempts: 1
Jacek Wysocki
Twitter:

developer / PHP / PostgreSQL / Zend / Symfony / jQueryknowledgeblackbelt.com White belt.com White belt

entered into 7 challenges

contributed 0 challenges