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 - 32983 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 / 7282
  • Number of attempts: 6
One number per line - 18426 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #169 / 3799
  • Number of attempts: 7
Wget failed to download redirections - 178 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: #37 / 60
  • Number of attempts: 2
V to the i - 4645 entries

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #222 / 360
  • Number of attempts: 1
Copy three lines - 2815 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 / 628
  • Number of attempts: 11
Just the middle - 11261 entries

Delete the instructions at the top and bottom.

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

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #55 / 1231
  • Number of attempts: 12
Combines all items - 279 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 / 126
  • Number of attempts: 2
Vice versa - 7563 entries

Little role switching.

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

Convert to comma separated list.

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

Oops.

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

Just testing.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #736 / 3924
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 392 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: #80 / 182
  • Number of attempts: 4
lamb had a little Mary - 563 entries

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

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

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

  • Best score: 6
  • Best player score: 6
  • Position: #89 / 244
  • Number of attempts: 2
Simple text editing with Vim - 11705 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 / 3430
  • Number of attempts: 4
Tim Grebien
Twitter:

entered into 19 challenges

contributed 0 challenges