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 - 33647 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: 28
  • Position: #4125 / 7425
  • Number of attempts: 2
V to the i - 4810 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #1765 / 1896
  • Number of attempts: 1
Search and Replace 0 - 4994 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #838 / 1627
  • Number of attempts: 3
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #448 / 701
  • Number of attempts: 4
Just the middle - 11464 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2057 / 4202
  • Number of attempts: 2
Basic renumbering - 5673 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Position: #899 / 1267
  • Number of attempts: 4
Vice versa - 7922 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1197 / 2132
  • Number of attempts: 4
lipsum lines - 278 entries

Convert a quoted block of text into strings in a list.

  • Best score: 28
  • Best player score: 33
  • Position: #61 / 95
  • Number of attempts: 3
Replace and keep the case - 437 entries

Replace all instance of plugin and Plugin to device and Device.

  • Best score: 26
  • Best player score: 30
  • Position: #81 / 118
  • Number of attempts: 3
Mirror Symmetry - 822 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #204 / 269
  • Number of attempts: 3
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1045 / 1191
  • Number of attempts: 1
camel riding - 793 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #117 / 281
  • Number of attempts: 3
Space out the alphabet - 1657 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 24
  • Position: #374 / 444
  • Number of attempts: 1
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #612 / 1138
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10672 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #890 / 3685
  • Number of attempts: 5
Saving the hashes(#) - 2063 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 25
  • Position: #180 / 480
  • Number of attempts: 7
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1186 / 1749
  • Number of attempts: 3
Simple text editing with Vim - 12856 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2260 / 3707
  • Number of attempts: 7
thlix
Twitter:

entered into 18 challenges

contributed 0 challenges