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

quotes inside quotes - 3165 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #671 / 1079
  • Number of attempts: 2
Words in parens - 12966 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1909 / 3968
  • Number of attempts: 3
Pairs of numbers - 363 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 57
  • Position: #122 / 136
  • Number of attempts: 1
Delete unwanted lines - 419 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 12
  • Position: #214 / 230
  • Number of attempts: 2
Switch function arguments - 2140 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #544 / 664
  • Number of attempts: 2
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1308 / 1749
  • Number of attempts: 5
Simple text editing with Vim - 12929 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2401 / 3723
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7096 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 40
  • Position: #809 / 1740
  • Number of attempts: 3
fSchl
Twitter:

entered into 8 challenges

contributed 0 challenges