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 - 33724 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 / 7442
  • Number of attempts: 11
Swap values - 4643 entries

Well, swap the values...

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

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1006 / 3870
  • Number of attempts: 6
Quote modules (ver.2) - 239 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 25
  • Position: #36 / 60
  • Number of attempts: 10
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #293 / 1881
  • Number of attempts: 6
multiple cursor alternative - 1521 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 / 381
  • Number of attempts: 12
Every other line - 2915 entries

AaAaAaA

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

Delete the instructions at the top and bottom.

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1080 / 3969
  • Number of attempts: 5
82 bottles of beer on the wall - 313 entries

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

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

时代的新陈代谢

entered into 12 challenges

contributed 0 challenges