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 - 32752 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: #2392 / 7238
  • Number of attempts: 4
One number per line - 18255 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1033 / 3765
  • Number of attempts: 8
Split line with dots - 2075 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 15
  • Position: #20 / 616
  • Number of attempts: 7
One to Ten - 2063 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 14
  • Position: #410 / 631
  • Number of attempts: 3
From A to B - 533 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 17
  • Position: #72 / 149
  • Number of attempts: 5
Collect List - 4146 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 13
  • Position: #544 / 1159
  • Number of attempts: 4
Space out the alphabet - 1543 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #305 / 422
  • Number of attempts: 4
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #332 / 1099
  • Number of attempts: 2
Don't know what this is - 1919 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #188 / 563
  • Number of attempts: 7
attr_aligner - 3350 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 30
  • Position: #366 / 678
  • Number of attempts: 2
Michal Sylwester
Twitter:

entered into 10 challenges

contributed 0 challenges