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 - 34012 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: #4161 / 7513
  • Number of attempts: 2
V to the i - 4883 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #1779 / 1914
  • Number of attempts: 1
Search and Replace 0 - 5159 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #861 / 1674
  • Number of attempts: 3
That hyphen - 2646 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #452 / 711
  • Number of attempts: 4
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2070 / 4255
  • Number of attempts: 2
Basic renumbering - 5733 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Position: #909 / 1279
  • Number of attempts: 4
Vice versa - 8019 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1208 / 2157
  • Number of attempts: 4
lipsum lines - 315 entries

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

  • Best score: 28
  • Best player score: 33
  • Position: #64 / 98
  • Number of attempts: 3
Replace and keep the case - 471 entries

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

  • Best score: 26
  • Best player score: 30
  • Position: #84 / 123
  • Number of attempts: 3
Mirror Symmetry - 844 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #207 / 272
  • Number of attempts: 3
Collect List - 4341 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1052 / 1200
  • Number of attempts: 1
camel riding - 815 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #118 / 284
  • Number of attempts: 3
Space out the alphabet - 1692 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 24
  • Position: #381 / 456
  • Number of attempts: 1
-a-b-c- - 3241 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #617 / 1146
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10755 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #890 / 3715
  • Number of attempts: 5
Saving the hashes(#) - 2116 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: #186 / 488
  • Number of attempts: 7
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1196 / 1764
  • Number of attempts: 3
Simple text editing with Vim - 13626 entries

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

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

entered into 18 challenges

contributed 0 challenges