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

Numbering a List - 1756 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 53
  • Number of attempts: 1
I forgot quotes - 13727 entries

Oops.

  • Best score: 10
  • Best player score: 35
  • Number of attempts: 1
quotes inside quotes - 2909 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: 2
Just the middle - 10097 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
VimGolfNight - 468 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
Words in parens - 11792 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 8
Simple text editing with Vim - 10896 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 9
switch variable - 4541 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 5
Paul Chandler
Twitter:

entered into 8 challenges

contributed 0 challenges