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

Remember FizzBuzz? - 531 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 49
  • Number of attempts: 12
Box it - 2296 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 39
  • Number of attempts: 1
Simple, Practical, and Common - 24466 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: 2
  • Best player score: 22
  • Number of attempts: 10
attr_aligner - 2968 entries

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

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 17
One number per line - 12434 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
Angular naming conventions - 262 entries

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 7
7th Birthday - 163 entries

We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 5
I forgot quotes - 11557 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 12
A Simple One - 835 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Swap values - 3483 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 9432 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 13
Words in parens - 10932 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 2
Just the middle - 9077 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
Simple text editing with Vim - 10335 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Generate a list of numbers - 242 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Missing Library and a Typo - 656 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 3
Search and Replace 0 - 4058 entries

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

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 5
-a-b-c- - 2549 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 8
Align commas - 820 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
Every other line - 2064 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 6
Josh Callender
Twitter:

WebDev @ http://t.co/zgcgj6prrE, film aficionado, connoisseur of all cuisines, techie.

entered into 20 challenges

contributed 0 challenges