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 - 32992 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: #911 / 7283
  • Number of attempts: 5
prepend * to every non-blank line - 6030 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #239 / 1477
  • Number of attempts: 3
V to the i - 4645 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #928 / 1859
  • Number of attempts: 1
That hyphen - 2512 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #405 / 685
  • Number of attempts: 2
Just the middle - 11261 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1535 / 4135
  • Number of attempts: 2
Basic renumbering - 5449 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #603 / 1231
  • Number of attempts: 4
VimGolfNight - 507 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #159 / 332
  • Number of attempts: 1
ASCII box - 324 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 34
  • Position: #100 / 103
  • Number of attempts: 1
I forgot quotes - 15769 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3051 / 4119
  • Number of attempts: 1
Gray area - 707 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #56 / 261
  • Number of attempts: 3
Don't know what this is - 1955 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: 14
  • Position: #313 / 573
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10555 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1911 / 3642
  • Number of attempts: 2
Words in parens - 12769 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1310 / 3925
  • Number of attempts: 5
Hole-in-one - 982 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 16
  • Position: #56 / 299
  • Number of attempts: 4
Saving the hashes(#) - 1973 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 29
  • Position: #343 / 468
  • Number of attempts: 1
Let's play some Ivmgolf - 1022 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #258 / 422
  • Number of attempts: 3
Vertical Limit - 2383 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 21
  • Position: #24 / 721
  • Number of attempts: 4
The meaning - 526 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #219 / 340
  • Number of attempts: 1
Erim Secla
Twitter:

entered into 18 challenges

contributed 0 challenges