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 text editing with Vim - 11200 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 - 12379 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 26
  • Number of attempts: 1
quotes inside quotes - 2973 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: 1
Two become one - 692 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 40
  • Number of attempts: 1
attr_aligner - 3282 entries

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

  • Best score: 19
  • Best player score: 39
  • Number of attempts: 1
Extract argument from function - 2138 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5734 entries

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

  • Best score: 32
  • Best player score: 47
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10343 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
HTML formatting: vertical alignment for readability - 60 entries

We did this a VimGolf challenge at work and now that we have finished I want to see if you guys can come up with something even better than we could. Our best solution was 44 keystrokes.

  • Best score: 33
  • Best player score: 227
  • Number of attempts: 1
Chris Davison
Twitter:

Knowledge seeker. 한국어 배우고 있다. Engineer. Minimalist in training.

entered into 9 challenges

contributed 0 challenges