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

Well, swap the values...

  • Best score: 6
  • Best player score: 11
  • Position: #169 / 1294
  • Number of attempts: 6
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #857 / 3907
  • Number of attempts: 5
V to the i - 4890 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #497 / 1917
  • Number of attempts: 3
From argument to object - 1566 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Position: #192 / 471
  • Number of attempts: 2
Every other line - 2952 entries

AaAaAaA

  • Best score: 7
  • Best player score: 13
  • Position: #198 / 713
  • Number of attempts: 6
Search and Replace 0 - 5170 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 7
  • Best player score: 13
  • Position: #888 / 1680
  • Number of attempts: 3
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2463 / 4262
  • Number of attempts: 1
Basic renumbering - 5735 entries

Renumbering Basic.

  • Best score: 7
  • Best player score: 14
  • Position: #487 / 1282
  • Number of attempts: 4
Order and join - 1032 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Position: #215 / 265
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 7
  • Best player score: 12
  • Position: #308 / 1200
  • Number of attempts: 2
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1338 / 4229
  • Number of attempts: 4
-a-b-c- - 3243 entries

Put hyphens everywhere.

  • Best score: 6
  • Best player score: 14
  • Position: #363 / 1148
  • Number of attempts: 4
Don't know what this is - 2070 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #214 / 596
  • Number of attempts: 3
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1611 / 3995
  • Number of attempts: 3
replacing each line of a block selection - 3070 entries

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

  • Best score: 7
  • Best player score: 23
  • Position: #489 / 791
  • Number of attempts: 1
moritz
Twitter:

entered into 16 challenges

contributed 0 challenges