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

Populate 3D bone names list - 636 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 31
  • Position: #101 / 164
  • Number of attempts: 1
Many duplicates - 1459 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #399 / 476
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1151 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 28
  • Position: #135 / 233
  • Number of attempts: 1
prepend * to every non-blank line - 6358 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #447 / 1551
  • Number of attempts: 1
One number per line - 18784 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #767 / 3878
  • Number of attempts: 6
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1135 / 4194
  • Number of attempts: 2
Vertical Limit - 2564 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 32
  • Position: #693 / 759
  • Number of attempts: 2
zeptoterem
Github:

entered into 7 challenges

contributed 0 challenges