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 - 33929 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: 29
  • Position: #4584 / 7489
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1983 / 4234
  • Number of attempts: 2
Vice versa - 7981 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1516 / 2147
  • Number of attempts: 3
Assign numbers to fields - 116 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 22
  • Position: #56 / 62
  • Number of attempts: 1
Collect List - 4317 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #790 / 1194
  • Number of attempts: 2
Space out the alphabet - 1659 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Position: #413 / 446
  • Number of attempts: 1
Mute the second method of this script - 456 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #203 / 240
  • Number of attempts: 1
Condensed Cases - 811 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 15
  • Position: #166 / 249
  • Number of attempts: 1
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2512 / 4208
  • Number of attempts: 1
-a-b-c- - 3225 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #808 / 1140
  • Number of attempts: 1
Count both ways - 1022 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Position: #305 / 354
  • Number of attempts: 1
Where should I put the Newline? - 885 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #368 / 439
  • Number of attempts: 1
Switch function arguments - 2188 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #414 / 676
  • Number of attempts: 1
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #878 / 1756
  • Number of attempts: 2
Simple text editing with Vim - 13419 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1502 / 3846
  • Number of attempts: 4
ORchard test
Twitter:

entered into 15 challenges

contributed 0 challenges