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 - 5042 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #1335 / 1643
  • Number of attempts: 1
Shuffle and Sort - 233 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 28
  • Position: #51 / 69
  • Number of attempts: 1
Vertical Limit - 2610 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 26
  • Position: #406 / 771
  • Number of attempts: 2
Switch function arguments - 2188 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #357 / 676
  • Number of attempts: 1
Append semicolon after expressions - 1061 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #285 / 421
  • Number of attempts: 3
Remove semicolons after expressions - 669 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 10
  • Position: #245 / 265
  • Number of attempts: 1
Context insensitive completion 0 - 594 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: 6
  • Best player score: 9
  • Position: #199 / 251
  • Number of attempts: 1
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #442 / 639
  • Number of attempts: 2
Deleting folded text - 397 entries

The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.

  • Best score: 17
  • Best player score: 30
  • Position: #117 / 123
  • Number of attempts: 1
Sort and add attributes - 1557 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 38
  • Position: #507 / 601
  • Number of attempts: 1
Reconstruct the Sentence - 1697 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 25
  • Position: #347 / 445
  • Number of attempts: 1
Braces or Brackets? - 1140 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 47
  • Position: #194 / 349
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 33
  • Position: #645 / 841
  • Number of attempts: 1
Flodder-challenge - 1443 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 59
  • Position: #357 / 369
  • Number of attempts: 1
Simple text editing with Vim - 13416 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #2867 / 3845
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7506 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #536 / 1846
  • Number of attempts: 6
Drew Benedetti
Twitter:

entered into 16 challenges

contributed 0 challenges