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: 17
  • Position: #725 / 1097
  • Number of attempts: 4
Pairs of numbers - 388 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: 40
  • Position: #87 / 139
  • 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: #66 / 238
  • Number of attempts: 4
replacing each line of a block selection - 3070 entries

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

  • Best score: 7
  • Best player score: 30
  • Position: #663 / 791
  • Number of attempts: 3
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 13
  • Position: #1102 / 1767
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7737 entries

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

  • Best score: 7
  • Best player score: 44
  • Position: #1184 / 1901
  • Number of attempts: 3
Daniel Kovacic
Twitter:

entered into 6 challenges

contributed 0 challenges