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 - 34031 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: #756 / 7520
  • Number of attempts: 6
Swap values - 4704 entries

Well, swap the values...

  • Best score: 6
  • Best player score: 11
  • Position: #131 / 1294
  • Number of attempts: 5
Split line with dots - 2176 entries

This line is too long, split it.

  • Best score: 7
  • Best player score: 15
  • Position: #101 / 640
  • Number of attempts: 3
Every other line - 2952 entries

AaAaAaA

  • Best score: 7
  • Best player score: 13
  • Position: #162 / 713
  • Number of attempts: 4
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #799 / 4262
  • Number of attempts: 3
Add to end of each line... kinda - 352 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Position: #84 / 182
  • Number of attempts: 1
Order and join - 1032 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #21 / 265
  • Number of attempts: 3
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 7
  • Best player score: 17
  • Position: #966 / 1200
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2194 / 4229
  • Number of attempts: 2
Letter case trickery - 1688 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 9
  • Position: #7 / 526
  • Number of attempts: 5
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #745 / 3995
  • Number of attempts: 4
Let's play some Ivmgolf - 1167 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #101 / 462
  • Number of attempts: 2
Change the content of a string - 1810 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #164 / 659
  • Number of attempts: 2
Reconstruct the Sentence - 1763 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 20
  • Position: #117 / 461
  • Number of attempts: 7
Saurav Mitra
Twitter:

entered into 14 challenges

contributed 0 challenges