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

VimGolfNight - 495 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #54 / 327
  • Number of attempts: 2
Letter case trickery - 1547 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: 11
  • Position: #186 / 498
  • Number of attempts: 2
quotes inside quotes - 3026 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: 15
  • Position: #361 / 1044
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #25 / 3919
  • Number of attempts: 7
Pairs of numbers - 345 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 36
  • Position: #63 / 129
  • Number of attempts: 4
Assign list - 150 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 33
  • Position: #15 / 56
  • Number of attempts: 4
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #341 / 627
  • Number of attempts: 2
Simple text editing with Vim - 11620 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1017 / 3409
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6000 entries

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

  • Best score: 32
  • Best player score: 45
  • Position: #1035 / 1479
  • Number of attempts: 1
Andrew Noyes
Twitter:

entered into 9 challenges

contributed 0 challenges