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

Generate a very basic Python constructor (fixed) - 1294 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 62
  • Position: #235 / 277
  • Number of attempts: 3
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 36
  • Position: #360 / 619
  • Number of attempts: 3
Visual block training - 1116 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 58
  • Position: #164 / 208
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1680 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 16
  • Position: #489 / 564
  • Number of attempts: 1
Wikitext headings to markdown - 1029 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 55
  • Position: #180 / 213
  • Number of attempts: 1
hello-world-vimgolf - 2523 entries

Simple number generation

  • Best score: 10
  • Best player score: 30
  • Position: #680 / 722
  • Number of attempts: 3
Extend shell script - 155 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 69
  • Position: #37 / 49
  • Number of attempts: 2
Format the CSS - 165 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 57
  • Position: #45 / 50
  • Number of attempts: 3
Rural Post - 4579 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 24
  • Position: #928 / 1117
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 852 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #263 / 441
  • Number of attempts: 2
Search and Replace 0 - 5042 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #688 / 1643
  • Number of attempts: 6
Replace and keep the case - 438 entries

Replace all instance of plugin and Plugin to device and Device.

  • Best score: 26
  • Best player score: 43
  • Position: #111 / 119
  • Number of attempts: 2
Reformat a C golf submission - 629 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 44
  • Position: #195 / 214
  • Number of attempts: 3
Reformat most common surnames - 795 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 80
  • Position: #218 / 230
  • Number of attempts: 2
Get rid of html tags - 441 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 19
  • Position: #161 / 252
  • Number of attempts: 2
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 30
  • Position: #583 / 639
  • Number of attempts: 3
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: 35
  • Position: #119 / 123
  • Number of attempts: 3
Sort and add attributes - 1557 entries

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

  • Best score: 33
  • Best player score: 36
  • Position: #461 / 601
  • Number of attempts: 2
Add fold markers to a .c file - 690 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 47
  • Position: #170 / 197
  • Number of attempts: 3
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: #200 / 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: 34
  • Position: #705 / 841
  • Number of attempts: 5
Flodder-challenge - 1443 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 43
  • Position: #294 / 369
  • Number of attempts: 4
Simple text editing with Vim - 13419 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1950 / 3846
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7507 entries

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

  • Best score: 7
  • Best player score: 44
  • Position: #1177 / 1847
  • Number of attempts: 3
anonymouse
Twitter:

entered into 24 challenges

contributed 0 challenges