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

Search and Replace 0 - 4644 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #112 / 1539
  • Number of attempts: 4
Interweave two blocks of text - 562 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: #57 / 203
  • Number of attempts: 9
Complete the hex array data - 190 entries

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

  • Best score: 23
  • Best player score: 27
  • Position: #29 / 72
  • Number of attempts: 3
Case preserving word replacement - 436 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: 21
  • Position: #79 / 175
  • Number of attempts: 1
Insert a Markdown link - 409 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 28
  • Position: #107 / 138
  • Number of attempts: 3
Shebangs for all - 1771 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: 16
  • Position: #277 / 467
  • Number of attempts: 3
Hatsuyume - 399 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 16
  • Best player score: 26
  • Position: #73 / 163
  • Number of attempts: 3
Context insensitive completion 0 - 467 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 7
  • Position: #40 / 220
  • Number of attempts: 2
Make Fancy Header - 960 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 23
  • Position: #267 / 325
  • Number of attempts: 5
Remember FizzBuzz? - 569 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 58
  • Position: #74 / 164
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 5975 entries

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

  • Best score: 32
  • Best player score: 40
  • Position: #719 / 1476
  • Number of attempts: 4
Shawn
Twitter:

student of language (japanese, perl, javascript, etc)

entered into 11 challenges

contributed 0 challenges