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 - 33343 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 / 7356
  • Number of attempts: 6
One number per line - 18611 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #309 / 3840
  • 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 - 676 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #173 / 1861
  • 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 - 219 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 - 15918 entries

Oops.

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

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Position: #151 / 192
  • Number of attempts: 5
imports alignment (python) - 659 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 - 430 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 - 12204 entries

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

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

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

entered into 14 challenges

contributed 0 challenges