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 - 32765 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 / 7241
  • Number of attempts: 5
prepend * to every non-blank line - 5829 entries

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

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

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

  • Best score: 7
  • Best player score: 8
  • Position: #921 / 1846
  • Number of attempts: 1
That hyphen - 2467 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #396 / 675
  • Number of attempts: 2
Just the middle - 11086 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1512 / 4093
  • Number of attempts: 2
Basic renumbering - 5408 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #595 / 1221
  • Number of attempts: 4
VimGolfNight - 482 entries

Based on "The name of the game".

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

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 34
  • Position: #96 / 99
  • Number of attempts: 1
I forgot quotes - 15666 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3033 / 4098
  • Number of attempts: 1
Gray area - 678 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #56 / 253
  • Number of attempts: 3
Don't know what this is - 1923 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: #307 / 565
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10513 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1902 / 3629
  • Number of attempts: 2
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1297 / 3906
  • Number of attempts: 5
Hole-in-one - 963 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 / 294
  • Number of attempts: 4
Saving the hashes(#) - 1937 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: #338 / 462
  • Number of attempts: 1
Let's play some Ivmgolf - 985 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #253 / 409
  • Number of attempts: 3
Vertical Limit - 2319 entries

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

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

Numbers are fun!

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

entered into 18 challenges

contributed 0 challenges