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

Interweave two blocks of text - 641 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 17
  • Position: #94 / 212
  • Number of attempts: 3
Python Hello World! Reformatting - 955 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: 49
  • Position: #333 / 371
  • Number of attempts: 1
Line Zipper - 454 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #129 / 212
  • Number of attempts: 2
Case preserving word replacement - 454 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 19
  • Position: #22 / 180
  • Number of attempts: 4
Complete the hex array data (Part II) - 157 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 20
  • Best player score: 27
  • Position: #55 / 68
  • Number of attempts: 1
Numbering a List - 1867 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 25
  • Position: #496 / 645
  • Number of attempts: 1
The holy-grail may help - 352 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 17
  • Position: #174 / 207
  • Number of attempts: 1
Ruby 1.9 hashes - 1225 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 17
  • Position: #314 / 402
  • Number of attempts: 3
Shebangs for all - 1917 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: 17
  • Position: #335 / 502
  • Number of attempts: 3
A Simple One - 1009 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #215 / 648
  • Number of attempts: 2
Reverse Simple Deletion - 834 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #201 / 455
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3505 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 40
  • Position: #693 / 757
  • Number of attempts: 2
Simple text editing with Vim - 12480 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #867 / 3623
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6743 entries

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

  • Best score: 31
  • Best player score: 57
  • Position: #1487 / 1651
  • Number of attempts: 1
Stephen Gordon
Twitter:

entered into 14 challenges

contributed 0 challenges