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

A simple change - 372 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 1
Sort and add attributes - 1112 entries

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

  • Best score: 33
  • Best player score: 34
  • Number of attempts: 2
you're stuck on jQuery < 1.7 - 324 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 40
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 512 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
The name of the game - 594 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
Simple text editing with Vim - 11020 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
Refactor arguments into object argument - 158 entries

A relatively common Javascript refactoring.

  • Best score: 48
  • Best player score: 86
  • Number of attempts: 2
Enumerate words - 225 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 27
  • Number of attempts: 1
Append semicolon after expressions - 892 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 1
Word frequency alignment - 215 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Phil
Twitter:

Organiser of @spanconf, Developer at @Yammer, Erlang Fan, ex-Couchbase. Author of JavaScript Domain-Driven Design. @sideshowcoder everywhere else

entered into 10 challenges

contributed 0 challenges