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 - 32910 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: 35
  • Position: #6365 / 7271
  • Number of attempts: 1
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #170 / 1857
  • Number of attempts: 2
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1649 / 4112
  • Number of attempts: 1
Make HTML List - 987 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 35
  • Position: #32 / 261
  • Number of attempts: 5
Basic renumbering - 5430 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Position: #761 / 1227
  • Number of attempts: 3
Vice versa - 7522 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #69 / 2044
  • Number of attempts: 7
Mirror Symmetry - 781 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Position: #25 / 262
  • Number of attempts: 3
Collect List - 4178 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #18 / 1166
  • Number of attempts: 3
camel riding - 745 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #174 / 267
  • Number of attempts: 2
swap or reverse - 104 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 62
  • Number of attempts: 1
Space out the alphabet - 1590 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 23
  • Position: #332 / 433
  • Number of attempts: 1
Line 'em up! - 367 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 34
  • Position: #93 / 105
  • Number of attempts: 3
ASCII box - 317 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 23
  • Position: #8 / 102
  • Number of attempts: 3
Mute the second method of this script - 439 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #13 / 233
  • Number of attempts: 2
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2723 / 4115
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #641 / 3637
  • Number of attempts: 4
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #486 / 3919
  • Number of attempts: 4
James Pringle
Twitter:

Programmer Analyst

entered into 17 challenges

contributed 0 challenges