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 - 32904 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: #2088 / 7270
  • Number of attempts: 11
Swap values - 4440 entries

Well, swap the values...

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

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #980 / 3787
  • Number of attempts: 6
Quote modules (ver.2) - 194 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 25
  • Position: #30 / 50
  • Number of attempts: 10
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #442 / 2988
  • Number of attempts: 5
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #294 / 1835
  • Number of attempts: 6
multiple cursor alternative - 1447 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 / 369
  • Number of attempts: 12
Every other line - 2829 entries

AaAaAaA

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1349 / 4112
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1064 / 3919
  • Number of attempts: 5
82 bottles of beer on the wall - 286 entries

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

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

时代的新陈代谢

entered into 12 challenges

contributed 0 challenges