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

Vertical Limit - 2615 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #116 / 772
  • Number of attempts: 6
replacing each line of a block selection - 3028 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 20
  • Position: #245 / 784
  • Number of attempts: 5
Append semicolon after expressions - 1065 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #284 / 422
  • Number of attempts: 2
Remove noise from HTTP log - 732 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: #36 / 278
  • Number of attempts: 3
Remove semicolons after expressions - 669 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #30 / 265
  • Number of attempts: 3
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 16
  • Position: #1560 / 1756
  • Number of attempts: 2
formatted text to markdown - 184 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: 80
  • Position: #47 / 67
  • Number of attempts: 2
Ben Alpert
Twitter:

entered into 7 challenges

contributed 0 challenges