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

Reformat/Refactor a Golfer Class - 5551 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 48
  • Number of attempts: 1
Python Hello World! Reformatting - 837 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Number of attempts: 2
Case preserving word replacement - 389 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 37
  • Number of attempts: 1
Simple, Practical, and Common - 26149 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: 14
  • Best player score: 33
  • Number of attempts: 3
Do you demand a shrubbery? - 1018 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Number of attempts: 3
Change the content of a string - 1245 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Number of attempts: 3
Gray area - 650 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 6
The name of the game - 586 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Assign numbers to fields - 85 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 47
  • Number of attempts: 4
learn vim in short time - 186 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1305 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 2
Just the middle - 9524 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 7
Simple text editing with Vim - 10592 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: 6
V to the i - 4054 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
switch variable - 4376 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 2
Words in parens - 11260 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 3
A Simple One - 848 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: 1
Collect List - 3575 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 28
  • Number of attempts: 2
The Cake is a Lie - 1136 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 5
Let's play some Ivmgolf - 926 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 15
  • Number of attempts: 1
I forgot quotes - 12364 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 5
Mirror Symmetry - 710 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 1
That hyphen - 2220 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 6
Shebangs for all - 1618 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 4
Ruby 1.9 hashes - 1080 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 4
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Search and Replace 0 - 4187 entries

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

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9653 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 3
Space out the alphabet - 1401 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 27
  • Number of attempts: 2
Pretty format for variable declarations - 128 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
lamb had a little Mary - 491 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 43
  • Number of attempts: 2
Basic renumbering - 4756 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Number of attempts: 3
camel riding - 697 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 1
Vice versa - 6132 entries

Little role switching.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 6
Andrew Michaud
Twitter:

Programmer jerk, Linux jerk, anime jerk, jerk jerk. (He/him)

entered into 34 challenges

contributed 0 challenges