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 - 150 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
  • Number of attempts: 3
Simple, Practical, and Common - 20844 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: 5
  • Best player score: 22
  • Number of attempts: 5
One number per line - 10273 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 2
Fun With The Diagonal - 74 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9012 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
Just the middle - 8425 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Space out the alphabet - 1250 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 8
SQL to YAML - 32 entries

Should be easy with vim, or not?

  • Best score: 72
  • Best player score: 99
  • Number of attempts: 2
Search and Replace 0 - 3819 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Vice versa - 5291 entries

Little role switching.

  • Best score: 2
  • Best player score: 12
  • Number of attempts: 4
Simple text editing with Vim - 9863 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
Do you demand a shrubbery? - 963 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 4
Mirror Symmetry - 676 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
Count both ways - 846 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • 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