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

FoodCritic023: Prefer conditional attributes - 161 entries

FoodCritic (www.foodcritic.io) is a lint tool for your Chef (learn.chef.io) cookbooks. FC023 indicates that you should prefer Chef guards over Ruby conditions. This challenge expects you to be able to fix this issue in a sample cookbook, given the FoodCritic output: ================================================================ FC023: Prefer conditional attributes: cookbooks/foo/recipes/default.rb:25 ================================================================ See http://www.foodcritic.io/#FC023 for more details about the changes being made.

  • Best score: 25
  • Best player score: 41
  • Number of attempts: 1
comments galore - 910 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
That hyphen - 2236 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
Vice versa - 6132 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 7
attr_aligner - 3072 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 29
  • Number of attempts: 3
V to the i - 4054 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
I forgot quotes - 12407 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Sort by sum of numbers in a line(?) - 45 entries

The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Collect List - 3577 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Simple, Practical, and Common - 26211 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: 14
  • Best player score: 27
  • Number of attempts: 6
Andy Loomis
Twitter:

entered into 11 challenges

contributed 0 challenges