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 - 34021 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: #380 / 7517
  • Number of attempts: 5
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1574 / 3904
  • Number of attempts: 2
Search and Replace 0 - 5162 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #431 / 1675
  • Number of attempts: 4
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2142 / 4258
  • Number of attempts: 2
FoodCritic023: Prefer conditional attributes - 193 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: 29
  • Position: #26 / 56
  • Number of attempts: 3
Fun With The Diagonal - 116 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #31 / 86
  • Number of attempts: 1
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #163 / 2158
  • Number of attempts: 4
SQL to YAML - 59 entries

Should be easy with vim, or not?

  • Best score: 71
  • Best player score: 99
  • Position: #21 / 24
  • Number of attempts: 2
Mirror Symmetry - 845 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Position: #57 / 273
  • Number of attempts: 5
Space out the alphabet - 1696 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #54 / 458
  • Number of attempts: 8
Count both ways - 1053 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Position: #319 / 362
  • Number of attempts: 1
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 17
  • Position: #118 / 310
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #927 / 3717
  • Number of attempts: 2
Simple text editing with Vim - 13644 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1555 / 3906
  • Number of attempts: 1
Fraser Cormack
Twitter:

Developer at Codeplay. Into computers, puns, and brewing beer, amongst other things.

entered into 14 challenges

contributed 0 challenges