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 - 33787 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 / 7454
  • Number of attempts: 11
Swap values - 4647 entries

Well, swap the values...

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

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1008 / 3880
  • Number of attempts: 6
Quote modules (ver.2) - 241 entries

Complete golang import statement.

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

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #293 / 1886
  • Number of attempts: 6
multiple cursor alternative - 1547 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 / 385
  • Number of attempts: 12
Every other line - 2922 entries

AaAaAaA

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

Delete the instructions at the top and bottom.

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1081 / 3971
  • 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