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 - 33969 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: #443 / 7502
  • Number of attempts: 9
Swap values - 4701 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #393 / 1290
  • Number of attempts: 6
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2044 / 3898
  • Number of attempts: 3
V to the i - 4860 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #357 / 1910
  • Number of attempts: 4
Just the middle - 11582 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2180 / 4243
  • Number of attempts: 3
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #24 / 1277
  • Number of attempts: 4
Fun With The Diagonal - 110 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #38 / 83
  • Number of attempts: 3
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #737 / 2153
  • Number of attempts: 6
Scrambled numbers - 829 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Position: #60 / 186
  • Number of attempts: 8
Align commas - 1105 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 17
  • Position: #162 / 248
  • Number of attempts: 1
From A to B - 603 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 17
  • Position: #74 / 160
  • Number of attempts: 3
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #198 / 1196
  • Number of attempts: 4
Line 'em up! - 426 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 18
  • Position: #50 / 115
  • Number of attempts: 3
Eero-Antero Säisä
Twitter:

entered into 13 challenges

contributed 0 challenges