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: #1945 / 7520
  • Number of attempts: 7
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1283 / 3907
  • Number of attempts: 7
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1096 / 3100
  • Number of attempts: 2
Bad Copy Syntax - 2088 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 21
  • Position: #293 / 543
  • Number of attempts: 2
Com(m)a Trouble - 3992 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 7
  • Best player score: 13
  • Position: #293 / 910
  • Number of attempts: 5
Box it - 8004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #504 / 1902
  • Number of attempts: 4
That hyphen - 2650 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #448 / 713
  • Number of attempts: 1
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1963 / 4262
  • Number of attempts: 2
Make HTML List - 1072 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 49
  • Position: #181 / 276
  • Number of attempts: 1
Paragraph breaks - 550 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Position: #124 / 172
  • Number of attempts: 1
Line under headers - 2095 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 33
  • Position: #346 / 515
  • Number of attempts: 1
Mirror Symmetry - 845 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #198 / 273
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 7
  • Best player score: 17
  • Position: #903 / 1200
  • Number of attempts: 1
readability - 342 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #59 / 156
  • Number of attempts: 1
quotes inside quotes - 3210 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 7
  • Best player score: 17
  • Position: #881 / 1097
  • Number of attempts: 1
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 19
  • Position: #3182 / 3995
  • Number of attempts: 1
Vertical Limit - 2642 entries

transform a succession of one word lines to a an array of strings

  • Best score: 10
  • Best player score: 25
  • Position: #371 / 781
  • Number of attempts: 1
replacing each line of a block selection - 3070 entries

replace each line's ../assets/js with /javascripts

  • Best score: 7
  • Best player score: 27
  • Position: #600 / 791
  • Number of attempts: 1
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 12
  • Position: #876 / 1767
  • Number of attempts: 1
Simple text editing with Vim - 13682 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2595 / 3920
  • Number of attempts: 1
Jörg Meyer
Twitter:

entered into 20 challenges

contributed 0 challenges