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 - 2392 entries

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

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

Based on "The name of the game".

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

Solve the equations.

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

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 15
  • Position: #22 / 104
  • Number of attempts: 3
Do you demand a shrubbery? - 1167 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #236 / 304
  • Number of attempts: 2
Don't know what this is - 2036 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 / 589
  • Number of attempts: 5
Where should I put the Newline? - 889 entries

Help me put the newline.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #414 / 3710
  • Number of attempts: 4
quotes inside quotes - 3191 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 / 1088
  • Number of attempts: 5
Words in parens - 13024 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #422 / 3983
  • Number of attempts: 6
Hole-in-one - 1024 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: #68 / 305
  • Number of attempts: 7
Prefixes and suffixes - 649 entries

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

  • Best score: 17
  • Best player score: 29
  • Position: #146 / 205
  • Number of attempts: 2
Vertical Limit - 2624 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #30 / 774
  • Number of attempts: 8
Remove noise from HTTP log - 741 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 / 279
  • Number of attempts: 4
Ugly spreadsheet copy/paste to CSV - 1016 entries

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

  • Best score: 19
  • Best player score: 34
  • Position: #102 / 196
  • Number of attempts: 6
Add fold markers to a .c file - 692 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: #183 / 198
  • Number of attempts: 1
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #3318 / 3865
  • Number of attempts: 1
Birkir Ólafsson
Twitter:

entered into 17 challenges

contributed 0 challenges