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 - 33535 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: 28
  • Position: #4442 / 7397
  • Number of attempts: 1
Add semicolons - 10841 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1997 / 3058
  • Number of attempts: 3
ninja substitution - 1420 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #116 / 267
  • Number of attempts: 4
One to Ten - 2209 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 14
  • Position: #487 / 669
  • Number of attempts: 2
I forgot quotes - 15954 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3349 / 4170
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1459 / 3678
  • Number of attempts: 2
Reformat long lines - 358 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 24
  • Position: #126 / 134
  • Number of attempts: 1
Shebangs for all - 1961 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 24
  • Position: #456 / 506
  • Number of attempts: 1
Context Insensitive completion 1 - 494 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 35
  • Position: #221 / 243
  • Number of attempts: 3
Make Fancy Header - 1045 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 29
  • Position: #327 / 342
  • Number of attempts: 1
Simple text editing with Vim - 12627 entries

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

  • Best score: 13
  • Best player score: 28
  • Position: #3258 / 3653
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6825 entries

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

  • Best score: 28
  • Best player score: 40
  • Position: #776 / 1673
  • Number of attempts: 1
johan wester
Twitter:

entered into 12 challenges

contributed 0 challenges