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 - 205 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 54
  • Position: #19 / 61
  • Number of attempts: 2
Change class fields from camel case to snake case - 457 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 25
  • Position: #69 / 110
  • Number of attempts: 3
Populate 3D bone names list - 636 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 23
  • Position: #52 / 164
  • Number of attempts: 4
Find fix point of cos - 1432 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #257 / 424
  • Number of attempts: 4
Simple, Practical, and Common - 33787 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: 22
  • Position: #2408 / 7454
  • Number of attempts: 5
Com(m)a Trouble - 3907 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 17
  • Position: #598 / 886
  • Number of attempts: 2
Just the middle - 11509 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3210 / 4218
  • Number of attempts: 1
Changing URL path in CSS - 143 entries

What's the quickest way to swap out all the URLs in a CSS file? Is it wasted keystrokes using look-behinds and look-aheads? (I'm sorry for the delete/report--I made a mistake with the last one requiring an ugly search for graphic to replace with images. I just intended this to be a simple search and replace that might possibly generate some macros or normals solutions that are quicker)

  • Best score: 40
  • Best player score: 46
  • Position: #42 / 64
  • Number of attempts: 2
Generate Fibonacci Numbers - 289 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 31
  • Position: #93 / 102
  • Number of attempts: 1
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 31
  • Position: #102 / 352
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 7252 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 10
  • Best player score: 36
  • Position: #494 / 1790
  • Number of attempts: 3
Anton de Regt
Github:

entered into 11 challenges

contributed 0 challenges