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 - 32953 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: 27
  • Position: #3674 / 7275
  • Number of attempts: 6
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1073 / 1857
  • Number of attempts: 1
That hyphen - 2500 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #94 / 683
  • Number of attempts: 6
FoodCritic023: Prefer conditional attributes - 177 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
  • Position: #49 / 50
  • Number of attempts: 1
Vice versa - 7535 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #88 / 2048
  • Number of attempts: 7
comments galore - 970 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #299 / 410
  • Number of attempts: 2
Collect List - 4184 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #119 / 1167
  • Number of attempts: 6
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #294 / 4116
  • Number of attempts: 8
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #132 / 1112
  • Number of attempts: 4
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 29
  • Position: #339 / 685
  • Number of attempts: 3
Sort by sum of numbers in a line(?) - 48 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
  • Position: #28 / 32
  • Number of attempts: 2
Andy Loomis
Twitter:

entered into 11 challenges

contributed 0 challenges