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 - 33552 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: #3745 / 7401
  • Number of attempts: 6
V to the i - 4796 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1090 / 1891
  • Number of attempts: 1
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #94 / 701
  • Number of attempts: 6
FoodCritic023: Prefer conditional attributes - 181 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: #51 / 53
  • Number of attempts: 1
Vice versa - 7891 entries

Little role switching.

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

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #310 / 423
  • Number of attempts: 2
Collect List - 4298 entries

Convert to comma separated list.

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

Oops.

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

Put hyphens everywhere.

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

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

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

entered into 11 challenges

contributed 0 challenges