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 - 32904 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 / 7270
  • Number of attempts: 5
One number per line - 18377 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1527 / 3787
  • Number of attempts: 2
Search and Replace 0 - 4651 entries

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

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2099 / 4112
  • Number of attempts: 2
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: 29
  • Position: #24 / 50
  • Number of attempts: 3
Fun With The Diagonal - 97 entries

change the lowercase characters on the main diagonal to uppercase

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

Little role switching.

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

Should be easy with vim, or not?

  • Best score: 72
  • Best player score: 99
  • Position: #17 / 20
  • Number of attempts: 2
Mirror Symmetry - 781 entries

Add backslashes.

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

Put 3 spaces between adjacent letters.

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

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Position: #299 / 340
  • Number of attempts: 1
Do you demand a shrubbery? - 1105 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 17
  • Position: #116 / 291
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 13
  • Best player score: 14
  • Position: #1445 / 3409
  • 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