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

Letter case trickery - 1644 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 22
  • Position: #507 / 520
  • Number of attempts: 2
quotes inside quotes - 3185 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: 39
  • Position: #1079 / 1086
  • Number of attempts: 2
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 65
  • Position: #3965 / 3977
  • Number of attempts: 1
Vertical Limit - 2596 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 42
  • Position: #751 / 767
  • Number of attempts: 3
replacing each line of a block selection - 3007 entries

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

  • Best score: 18
  • Best player score: 39
  • Position: #759 / 780
  • Number of attempts: 1
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 16
  • Position: #1571 / 1754
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7389 entries

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

  • Best score: 7
  • Best player score: 77
  • Position: #1754 / 1825
  • Number of attempts: 2
Mohit Sharma
Twitter:

I contradict myself

entered into 7 challenges

contributed 0 challenges