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 - 33929 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: #253 / 7489
  • Number of attempts: 10
Python Hello World! Reformatting - 1011 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: 45
  • Position: #289 / 387
  • Number of attempts: 2
Swap assigned value - 671 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 17
  • Position: #248 / 259
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10720 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #869 / 3703
  • Number of attempts: 3
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2038 / 3979
  • Number of attempts: 4
Hole-in-one - 1024 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: 30
  • Position: #299 / 305
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 425 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: 10
  • Position: #64 / 193
  • Number of attempts: 2
Make Fancy Header - 1079 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #189 / 351
  • Number of attempts: 3
Remember FizzBuzz? - 787 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 73
  • Position: #160 / 204
  • Number of attempts: 2
Simple text editing with Vim - 13419 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 17
  • Position: #2495 / 3846
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7508 entries

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

  • Best score: 7
  • Best player score: 42
  • Position: #1013 / 1847
  • Number of attempts: 3
Daniel Gray
Twitter:

Musician | Programmer

entered into 11 challenges

contributed 0 challenges