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

Quicksort - 2033 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #64 / 448
  • Number of attempts: 11
Remove line numbers - 745 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 12
  • Position: #45 / 199
  • Number of attempts: 2
Simple, Practical, and Common - 33745 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: #666 / 7448
  • Number of attempts: 10
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #424 / 1274
  • Number of attempts: 4
One number per line - 18777 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2851 / 3876
  • Number of attempts: 1
Add semicolons - 10889 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 16
  • Position: #2378 / 3076
  • Number of attempts: 2
Box it - 7927 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 39
  • Position: #1699 / 1883
  • Number of attempts: 1
Every other line - 2922 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #119 / 706
  • Number of attempts: 6
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1021 / 1631
  • Number of attempts: 5
Just the middle - 11497 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #847 / 4215
  • Number of attempts: 6
Missing Library and a Typo - 900 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: 14
  • Best player score: 28
  • Position: #203 / 215
  • Number of attempts: 3
7th Birthday - 210 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
  • Position: #8 / 76
  • Number of attempts: 5
Angular naming conventions - 326 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
  • Position: #37 / 119
  • Number of attempts: 7
Align commas - 1097 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
  • Position: #46 / 247
  • Number of attempts: 6
Generate a list of numbers - 299 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Position: #35 / 141
  • Number of attempts: 3
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #737 / 4194
  • Number of attempts: 12
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #182 / 1138
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10693 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1258 / 3693
  • Number of attempts: 13
attr_aligner - 3522 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #124 / 703
  • Number of attempts: 17
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1566 / 3970
  • Number of attempts: 2
A Simple One - 1064 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
  • Position: #440 / 670
  • Number of attempts: 2
Remember FizzBuzz? - 742 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 49
  • Position: #45 / 194
  • Number of attempts: 12
Simple text editing with Vim - 13068 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #441 / 3757
  • Number of attempts: 4
Josh Callender
Twitter:

WebDev, film aficionado, connoisseur of all cuisines, techie.

entered into 23 challenges

contributed 0 challenges