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: #1509 / 1899
  • Number of attempts: 2
120 Degrees - 505 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 21
  • Position: #82 / 146
  • 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: 13
  • Position: #250 / 586
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1866 / 3695
  • Number of attempts: 2
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 31
  • Position: #3896 / 3970
  • Number of attempts: 1
Dehamlizing - 185 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 55
  • Position: #63 / 72
  • Number of attempts: 2
Changing URL path in CSS - 143 entries

What's the quickest way to swap out all the URLs in a CSS file? Is it wasted keystrokes using look-behinds and look-aheads? (I'm sorry for the delete/report--I made a mistake with the last one requiring an ugly search for graphic to replace with images. I just intended this to be a simple search and replace that might possibly generate some macros or normals solutions that are quicker)

  • Best score: 40
  • Best player score: 46
  • Position: #41 / 64
  • Number of attempts: 1
NATO phonetic alphabet - 538 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 19
  • Position: #2 / 197
  • Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 425 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #20 / 193
  • Number of attempts: 3
The name of the game - 678 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #7 / 363
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1616 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #147 / 447
  • Number of attempts: 2
you're stuck on jQuery < 1.7 - 362 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 28
  • Position: #45 / 113
  • Number of attempts: 2
Inconsistent real estate paste - 217 entries

Format a hand-typed real estate listing that uses inconsistent punctuation into four sections

  • Best score: 24
  • Best player score: 37
  • Position: #35 / 59
  • Number of attempts: 2
replacing each line of a block selection - 3005 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 24
  • Position: #500 / 779
  • Number of attempts: 1
Switch function arguments - 2152 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #229 / 667
  • Number of attempts: 6
Line Zipper - 477 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #173 / 216
  • Number of attempts: 1
Ruby 1.9 hashes - 1260 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: 18
  • Position: #343 / 410
  • Number of attempts: 1
Shebangs for all - 2046 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 22
  • Position: #445 / 522
  • Number of attempts: 1
Change the content of a string - 1649 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Position: #347 / 609
  • Number of attempts: 5
Whitespace, empty lines and tabs - 3793 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 21
  • Position: #238 / 814
  • Number of attempts: 7
Simple text editing with Vim - 13101 entries

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

  • Best score: 13
  • Best player score: 23
  • Position: #3051 / 3768
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7230 entries

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

  • Best score: 10
  • Best player score: 44
  • Position: #1114 / 1779
  • Number of attempts: 1
Domon
Twitter:

Feel free to follow me, if you're not a spammer.

entered into 22 challenges

contributed 0 challenges