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 - 33354 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: #2087 / 7358
  • Number of attempts: 11
Swap values - 4535 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #310 / 1255
  • Number of attempts: 7
prepend * to every non-blank line - 6202 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #51 / 1514
  • Number of attempts: 6
One number per line - 18615 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #998 / 3841
  • Number of attempts: 6
Quote modules (ver.2) - 211 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 25
  • Position: #33 / 56
  • Number of attempts: 10
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #441 / 3042
  • Number of attempts: 5
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #293 / 1861
  • Number of attempts: 6
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: 19
  • Position: #83 / 376
  • Number of attempts: 12
Every other line - 2886 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #55 / 700
  • Number of attempts: 9
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1348 / 4160
  • Number of attempts: 3
Words in parens - 12850 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1072 / 3944
  • Number of attempts: 5
82 bottles of beer on the wall - 302 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 150
  • Position: #112 / 140
  • Number of attempts: 1
杜撰
Twitter:

时代的新陈代谢

entered into 12 challenges

contributed 0 challenges