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: 23
  • Position: #2471 / 7239
  • Number of attempts: 3
Swap values - 4401 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #112 / 1233
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 536 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #221 / 339
  • Number of attempts: 1
Every other line - 2787 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #110 / 678
  • Number of attempts: 4
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: #29 / 618
  • Number of attempts: 5
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2226 / 4091
  • Number of attempts: 1
Fiddle percentages into real numbers - 791 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 16
  • Position: #175 / 269
  • Number of attempts: 1
Vice versa - 7434 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1205 / 2016
  • Number of attempts: 1
Free hyphen! - 144 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Position: #65 / 79
  • Number of attempts: 1
Paragraph breaks - 477 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Position: #15 / 158
  • Number of attempts: 4
From A to B - 533 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 18
  • Position: #97 / 149
  • Number of attempts: 2
I forgot quotes - 15656 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2808 / 4097
  • Number of attempts: 1
-a-b-c- - 3081 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #800 / 1100
  • Number of attempts: 1
Count both ways - 935 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #244 / 334
  • Number of attempts: 1
Gray area - 678 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #93 / 253
  • Number of attempts: 3
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1521 / 3905
  • Number of attempts: 1
Delete unwanted lines - 350 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #159 / 210
  • Number of attempts: 1
switch variable - 4866 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #441 / 1690
  • Number of attempts: 2
Simple text editing with Vim - 11407 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1474 / 3350
  • Number of attempts: 2
jinx balotchnik
Twitter:

entered into 19 challenges

contributed 0 challenges