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 - 33396 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: 29
  • Position: #4716 / 7367
  • Number of attempts: 2
One number per line - 18627 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2114 / 3843
  • Number of attempts: 3
Add semicolons - 10795 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1976 / 3045
  • Number of attempts: 1
multiple cursor alternative - 1474 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 29
  • Position: #326 / 376
  • Number of attempts: 2
Every other line - 2894 entries

AaAaAaA

  • Best score: 12
  • Best player score: 20
  • Position: #600 / 701
  • Number of attempts: 2
Pretty multi-line bash - 218 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 54
  • Position: #73 / 75
  • Number of attempts: 1
C Reformatting - 688 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 149
  • Position: #160 / 161
  • Number of attempts: 1
Align commas - 1049 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: 25
  • Position: #229 / 241
  • Number of attempts: 3
I forgot quotes - 15931 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2194 / 4161
  • Number of attempts: 3
Marc
Twitter:

Zwitschern ist was für Vögel!

entered into 9 challenges

contributed 0 challenges