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 - 27114 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: 48
  • Number of attempts: 1
Gray area - 655 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 1
A grid of punctuation - 112 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 23
  • Number of attempts: 1
Mirrored text - 153 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
That hyphen - 2259 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Number of attempts: 1
comments galore - 911 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 1
Mute the second method of this script - 417 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
Swap values - 3785 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 21
  • Number of attempts: 1
quotes inside quotes - 2844 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1324 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 - 9758 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Number of attempts: 1
Words in parens - 11430 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 34
  • Number of attempts: 1
V to the i - 4148 entries

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

  • Best score: 7
  • Best player score: 11
  • Number of attempts: 1
Paragraph sort - 333 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 41
  • Number of attempts: 1
Don't know what this is - 1809 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 1
Collect List - 3634 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 1
Copy three lines - 2251 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 50
  • Number of attempts: 1
-a-b-c- - 2707 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
Count both ways - 898 entries

Right AND down.

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
I forgot quotes - 12842 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 1
Generate a list of numbers - 254 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Vice versa - 6282 entries

Little role switching.

  • Best score: 12
  • Best player score: 19
  • Number of attempts: 1
Numbering a List - 1754 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 22
  • Number of attempts: 1
camel riding - 708 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 20
  • Number of attempts: 1
Micha
Twitter:

entered into 24 challenges

contributed 0 challenges