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 - 3030 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: #647 / 1045
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1875 / 3919
  • Number of attempts: 3
Pairs of numbers - 345 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: #116 / 129
  • Number of attempts: 1
Delete unwanted lines - 358 entries

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

  • Best score: 9
  • Best player score: 12
  • Position: #200 / 215
  • Number of attempts: 2
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #516 / 627
  • Number of attempts: 2
switch variable - 4937 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1281 / 1707
  • Number of attempts: 5
Simple text editing with Vim - 11652 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2208 / 3417
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6031 entries

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

  • Best score: 32
  • Best player score: 40
  • Position: #737 / 1485
  • Number of attempts: 3
fSchl
Twitter:

entered into 8 challenges

contributed 0 challenges