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 - 33757 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: #4757 / 7450
  • Number of attempts: 2
One number per line - 18780 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2127 / 3877
  • Number of attempts: 3
Add semicolons - 10891 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1999 / 3077
  • Number of attempts: 1
multiple cursor alternative - 1542 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: #334 / 384
  • Number of attempts: 2
Every other line - 2922 entries

AaAaAaA

  • Best score: 12
  • Best player score: 20
  • Position: #603 / 706
  • Number of attempts: 2
Pretty multi-line bash - 235 entries

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

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

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

  • Best score: 30
  • Best player score: 149
  • Position: #161 / 163
  • Number of attempts: 1
Align commas - 1097 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: #234 / 247
  • Number of attempts: 3
I forgot quotes - 16051 entries

Oops.

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

Zwitschern ist was für Vögel!

entered into 9 challenges

contributed 0 challenges