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 - 33385 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 / 7364
  • Number of attempts: 6
One number per line - 18616 entries

Just give me the numbers.

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

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #226 / 569
  • Number of attempts: 2
Swap the operands under comparison - 270 entries

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

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

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #173 / 1865
  • Number of attempts: 4
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: #26 / 376
  • Number of attempts: 7
Array transposition - 2378 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #124 / 443
  • Number of attempts: 8
Cartesian product - 221 entries

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

  • Best score: 24
  • Best player score: 26
  • Position: #25 / 92
  • Number of attempts: 9
I forgot quotes - 15931 entries

Oops.

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

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Position: #151 / 193
  • Number of attempts: 5
imports alignment (python) - 661 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #51 / 194
  • Number of attempts: 5
Insert a Markdown link - 431 entries

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

  • Best score: 22
  • Best player score: 24
  • Position: #51 / 143
  • Number of attempts: 2
Simple text editing with Vim - 12290 entries

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

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

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

entered into 14 challenges

contributed 0 challenges