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 - 32746 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 / 7235
  • Number of attempts: 6
One number per line - 18240 entries

Just give me the numbers.

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

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #219 / 555
  • Number of attempts: 2
Swap the operands under comparison - 251 entries

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

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

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #174 / 1819
  • Number of attempts: 4
multiple cursor alternative - 1413 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 / 363
  • Number of attempts: 7
Array transposition - 2234 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #116 / 422
  • Number of attempts: 8
Cartesian product - 206 entries

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

  • Best score: 24
  • Best player score: 26
  • Position: #23 / 86
  • Number of attempts: 9
I forgot quotes - 15639 entries

Oops.

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

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Position: #140 / 176
  • Number of attempts: 5
imports alignment (python) - 586 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #49 / 181
  • Number of attempts: 5
Insert a Markdown link - 398 entries

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

  • Best score: 22
  • Best player score: 24
  • Position: #46 / 133
  • Number of attempts: 2
Simple text editing with Vim - 11365 entries

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

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

I ˂3 maize snacks.

entered into 14 challenges

contributed 0 challenges