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

V to the i - 4824 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1588 / 1899
  • Number of attempts: 1
Search and Replace 0 - 5007 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 16
  • Position: #1201 / 1631
  • Number of attempts: 1
Just the middle - 11500 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3284 / 4216
  • Number of attempts: 1
Basic renumbering - 5685 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #995 / 1270
  • Number of attempts: 2
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #212 / 352
  • Number of attempts: 1
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 24
  • Position: #3936 / 4194
  • Number of attempts: 1
Shift down - 209 entries

Number words are back.

  • Best score: 19
  • Best player score: 29
  • Position: #46 / 69
  • Number of attempts: 1
Gray area - 747 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #215 / 271
  • Number of attempts: 1
Neither Fizz nor Buzz - 257 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 22
  • Position: #90 / 104
  • Number of attempts: 1
Don't know what this is - 2024 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: 16
  • Position: #484 / 586
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 16
  • Position: #3281 / 3695
  • Number of attempts: 1
Ruby 1.9 hashes - 1258 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 15
  • Position: #280 / 409
  • Number of attempts: 2
Change the content of a string - 1646 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #489 / 607
  • Number of attempts: 1
Simple text editing with Vim - 13092 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #3254 / 3765
  • Number of attempts: 1
Jeffrey Gu
Twitter:

Hi.

entered into 14 challenges

contributed 0 challenges