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 - 33552 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: 30
  • Position: #5073 / 7401
  • Number of attempts: 1
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3148 / 3855
  • Number of attempts: 2
Every other line - 2910 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Position: #449 / 703
  • Number of attempts: 2
Just the middle - 11418 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2299 / 4182
  • Number of attempts: 2
I forgot quotes - 15956 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2871 / 4171
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2645 / 3678
  • Number of attempts: 2
attr_aligner - 3498 entries

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

  • Best score: 19
  • Best player score: 40
  • Position: #619 / 696
  • Number of attempts: 1
Letter case trickery - 1619 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: 17
  • Position: #468 / 515
  • Number of attempts: 1
quotes inside quotes - 3154 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
  • Position: #786 / 1075
  • Number of attempts: 2
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 24
  • Position: #3695 / 3957
  • Number of attempts: 1
switch variable - 5061 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 16
  • Position: #1567 / 1743
  • Number of attempts: 4
Simple text editing with Vim - 12639 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2383 / 3656
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6856 entries

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

  • Best score: 28
  • Best player score: 50
  • Position: #1372 / 1677
  • Number of attempts: 1
Aurélien Vallée
Twitter:

entered into 13 challenges

contributed 0 challenges