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 - 33552 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: #1098 / 7401
  • Number of attempts: 6
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #309 / 3855
  • Number of attempts: 7
Swap values inside brackets - 2480 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #228 / 575
  • Number of attempts: 2
Swap the operands under comparison - 296 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 19
  • Position: #9 / 100
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 750 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #106 / 405
  • Number of attempts: 1
Box it - 7897 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #173 / 1872
  • Number of attempts: 4
multiple cursor alternative - 1519 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: #26 / 380
  • Number of attempts: 7
Array transposition - 2415 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #126 / 446
  • Number of attempts: 8
Cartesian product - 248 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 26
  • Position: #27 / 94
  • Number of attempts: 9
I forgot quotes - 15956 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #636 / 4171
  • Number of attempts: 6
Stairs Indenting - 473 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Position: #154 / 197
  • Number of attempts: 5
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #53 / 198
  • Number of attempts: 5
Insert a Markdown link - 434 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 24
  • Position: #52 / 145
  • Number of attempts: 2
Simple text editing with Vim - 12632 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #835 / 3655
  • Number of attempts: 4
Rich Cheng
Twitter:

I ᐸ3 b-boying, Vim, and maize snacks.

entered into 14 challenges

contributed 0 challenges