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

Simple, Practical, and Common - 32758 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #798 / 7239
  • Number of attempts: 6
One number per line - 18278 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #169 / 3768
  • Number of attempts: 7
Wget failed to download redirections - 169 entries

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

  • Best score: 15
  • Best player score: 20
  • Position: #35 / 58
  • Number of attempts: 2
V to the i - 4605 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #444 / 1842
  • Number of attempts: 3
Wrap the text of an email message to 79 characters - 529 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #222 / 338
  • Number of attempts: 1
Copy three lines - 2755 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Position: #47 / 618
  • Number of attempts: 11
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #828 / 4091
  • Number of attempts: 2
Basic renumbering - 5405 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #55 / 1220
  • Number of attempts: 12
Combines all items - 265 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #44 / 121
  • Number of attempts: 2
Vice versa - 7434 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #251 / 2016
  • Number of attempts: 7
Collect List - 4149 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #274 / 1160
  • Number of attempts: 5
I forgot quotes - 15656 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #531 / 4097
  • Number of attempts: 6
NBCU Weekly Challenge - Test - 227 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #51 / 109
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10511 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1082 / 3628
  • Number of attempts: 2
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #728 / 3905
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 373 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: 10
  • Best player score: 10
  • Position: #76 / 175
  • Number of attempts: 4
lamb had a little Mary - 538 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 16
  • Position: #14 / 153
  • Number of attempts: 7
Remove semicolons after expressions - 512 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #89 / 226
  • Number of attempts: 2
Simple text editing with Vim - 11393 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #460 / 3348
  • Number of attempts: 4
Tim Grebien
Twitter:

entered into 19 challenges

contributed 0 challenges