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: 29
  • Position: #4599 / 7520
  • 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: #1990 / 4262
  • Number of attempts: 2
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1523 / 2158
  • Number of attempts: 3
Assign numbers to fields - 123 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: #59 / 65
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 7
  • Best player score: 16
  • Position: #796 / 1200
  • Number of attempts: 2
Space out the alphabet - 1700 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Position: #425 / 460
  • Number of attempts: 1
Mute the second method of this script - 466 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #207 / 247
  • Number of attempts: 1
Condensed Cases - 829 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: #170 / 255
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2525 / 4229
  • Number of attempts: 1
-a-b-c- - 3243 entries

Put hyphens everywhere.

  • Best score: 6
  • Best player score: 16
  • Position: #816 / 1148
  • Number of attempts: 1
Count both ways - 1053 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Position: #312 / 362
  • Number of attempts: 1
Where should I put the Newline? - 916 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #372 / 453
  • Number of attempts: 1
Switch function arguments - 2235 entries

How to switch two arguments of a function.

  • Best score: 7
  • Best player score: 13
  • Position: #421 / 687
  • Number of attempts: 1
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 12
  • Position: #885 / 1767
  • Number of attempts: 2
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: 14
  • Position: #1520 / 3920
  • Number of attempts: 4
ORchard test
Twitter:

entered into 15 challenges

contributed 0 challenges