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

Replace markdown sections with numbering - 321 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 110
  • Position: #77 / 89
  • Number of attempts: 1
Change class fields from snake case to camel case - 318 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 15
  • Position: #87 / 120
  • Number of attempts: 3
hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 18
  • Position: #631 / 726
  • Number of attempts: 1
Rural Post - 4596 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 16
  • Position: #811 / 1122
  • Number of attempts: 2
Simple, Practical, and Common - 33982 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: 54
  • Position: #7447 / 7508
  • Number of attempts: 1
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #797 / 1291
  • Number of attempts: 6
One number per line - 18894 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 44
  • Position: #3845 / 3901
  • Number of attempts: 1
Just the middle - 11611 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 14
  • Position: #4184 / 4252
  • Number of attempts: 3
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 17
  • Position: #620 / 1277
  • Number of attempts: 3
Delete to the end of the current line - 867 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 9
  • Position: #406 / 417
  • Number of attempts: 1
I forgot quotes - 16185 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Position: #3598 / 4221
  • Number of attempts: 1
learn vim in short time - 246 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 10
  • Position: #162 / 166
  • Number of attempts: 2
Don't know what this is - 2048 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 16
  • Position: #545 / 592
  • Number of attempts: 1
Words in parens - 13033 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 19
  • Position: #3189 / 3987
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1641 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 17
  • Position: #445 / 456
  • Number of attempts: 2
Switch function arguments - 2204 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 19
  • Position: #658 / 681
  • Number of attempts: 3
Make it more readable - 2036 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #550 / 657
  • Number of attempts: 1
Numbering a List - 1944 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 57
  • Position: #648 / 659
  • Number of attempts: 1
Justin Fisher
Github:

entered into 18 challenges

contributed 0 challenges