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 - 32904 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: #235 / 7270
  • Number of attempts: 7
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #302 / 1856
  • Number of attempts: 2
Extract argument from function - 2215 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #508 / 728
  • Number of attempts: 3
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #508 / 4112
  • Number of attempts: 3
Fix the XML - 958 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 25
  • Position: #157 / 279
  • Number of attempts: 1
Count both ways - 957 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #231 / 340
  • Number of attempts: 2
120 Degrees - 441 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 21
  • Position: #87 / 140
  • Number of attempts: 4
Gray area - 698 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 11
  • Position: #14 / 259
  • Number of attempts: 4
Mess in revision history - 1143 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 17
  • Position: #35 / 242
  • Number of attempts: 9
Hole-in-one - 973 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: 25
  • Position: #282 / 297
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 388 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 11
  • Position: #139 / 180
  • Number of attempts: 2
Make Fancy Header - 963 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #100 / 326
  • Number of attempts: 4
Alain
Twitter:

entered into 12 challenges

contributed 0 challenges