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

Cartesian product - 201 entries

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

  • Best score: 24
  • Best player score: 26
  • Number of attempts: 9
Simple, Practical, and Common - 24063 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: 2
  • Best player score: 22
  • Number of attempts: 6
One number per line - 12160 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 7
imports alignment (python) - 577 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 5
Stairs Indenting - 360 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 5
Swap values inside brackets - 1331 entries

Easy challenge.

  • Best score: 2
  • Best player score: 16
  • Number of attempts: 2
Simple text editing with Vim - 10282 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 4
Wrap the text of an email message to 79 characters - 482 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Array transposition - 1515 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 8
I forgot quotes - 11387 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
Swap the operands under comparison - 203 entries

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

  • Best score: 7
  • Best player score: 19
  • Number of attempts: 5
Insert a Markdown link - 385 entries

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

  • Best score: 22
  • Best player score: 24
  • Number of attempts: 2
multiple cursor alternative - 1034 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
  • Number of attempts: 7
Rich Cheng
Twitter:

I ˂3 maize snacks.

entered into 13 challenges

contributed 0 challenges