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 - 3210 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: 7
  • Best player score: 18
  • Position: #964 / 1097
  • Number of attempts: 3
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 25
  • Position: #3777 / 3995
  • Number of attempts: 1
Delete unwanted lines - 452 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #49 / 238
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1643 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #189 / 458
  • Number of attempts: 6
replacing each line of a block selection - 3070 entries

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

  • Best score: 7
  • Best player score: 24
  • Position: #512 / 791
  • Number of attempts: 2
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 14
  • Position: #1329 / 1767
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7737 entries

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

  • Best score: 7
  • Best player score: 43
  • Position: #1101 / 1901
  • Number of attempts: 1
Dan Harrington
Twitter:

entered into 7 challenges

contributed 0 challenges