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 - 33866 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: #4475 / 7474
  • Number of attempts: 1
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2016 / 3085
  • Number of attempts: 3
ninja substitution - 1427 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #116 / 269
  • Number of attempts: 4
One to Ten - 2241 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: #494 / 682
  • Number of attempts: 2
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3371 / 4202
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1459 / 3700
  • Number of attempts: 2
Reformat long lines - 367 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: #127 / 136
  • Number of attempts: 1
Shebangs for all - 2049 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: #468 / 523
  • Number of attempts: 1
Context Insensitive completion 1 - 512 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 35
  • Position: #225 / 248
  • Number of attempts: 3
Make Fancy Header - 1075 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 29
  • Position: #333 / 349
  • Number of attempts: 1
Simple text editing with Vim - 13266 entries

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

  • Best score: 13
  • Best player score: 28
  • Position: #3386 / 3811
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7399 entries

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

  • Best score: 7
  • Best player score: 40
  • Position: #820 / 1825
  • Number of attempts: 1
johan wester
Twitter:

entered into 12 challenges

contributed 0 challenges