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

Simple, Practical, and Common - 25746 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 6
attr_aligner - 3040 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 27
  • Number of attempts: 3
Vice versa - 6071 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
quotes inside quotes - 2807 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
  • Number of attempts: 3
Simple text editing with Vim - 10544 entries

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

  • Best score: 13
  • Best player score: 23
  • Number of attempts: 2
Words in parens - 11183 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 1
Every other line - 2138 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 3
Will Handley
Twitter:

``is false when preceded by its quotation'' is false when preceded by its quotation.

entered into 7 challenges

contributed 0 challenges