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

Extract argument from function - 2215 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #68 / 728
  • Number of attempts: 6
VimGolfNight - 495 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #184 / 327
  • Number of attempts: 1
Subtraction - 168 entries

Solve the equations.

  • Best score: 18
  • Best player score: 18
  • Position: #2 / 58
  • Number of attempts: 3
Neither Fizz nor Buzz - 216 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 15
  • Position: #17 / 96
  • Number of attempts: 3
Do you demand a shrubbery? - 1105 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #228 / 291
  • Number of attempts: 2
Don't know what this is - 1948 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Position: #6 / 571
  • Number of attempts: 5
Where should I put the Newline? - 842 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #88 / 421
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #414 / 3637
  • Number of attempts: 4
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: 14
  • Position: #161 / 1044
  • Number of attempts: 5
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #399 / 3919
  • Number of attempts: 6
Hole-in-one - 973 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 16
  • Position: #66 / 297
  • Number of attempts: 7
Prefixes and suffixes - 567 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 29
  • Position: #137 / 185
  • Number of attempts: 2
Vertical Limit - 2367 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 21
  • Position: #30 / 716
  • Number of attempts: 8
Remove noise from HTTP log - 660 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #92 / 260
  • Number of attempts: 4
Ugly spreadsheet copy/paste to CSV - 840 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 34
  • Position: #91 / 173
  • Number of attempts: 6
Add fold markers to a .c file - 481 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 52
  • Position: #146 / 157
  • Number of attempts: 1
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: 26
  • Position: #2963 / 3409
  • Number of attempts: 1
Birkir Ólafsson
Twitter:

entered into 17 challenges

contributed 0 challenges