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

Changing date formats - 713 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 83
  • Position: #104 / 198
  • Number of attempts: 1
Simple, Practical, and Common - 33964 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: 24
  • Position: #3145 / 7500
  • Number of attempts: 4
Wrap the text of an email message to 79 characters - 858 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #326 / 444
  • Number of attempts: 1
Search and Replace 0 - 5102 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #750 / 1662
  • Number of attempts: 3
Python Hello World! Reformatting - 1015 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: 39
  • Position: #11 / 390
  • Number of attempts: 4
Sorting paragraphs - 557 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 20
  • Position: #19 / 167
  • Number of attempts: 11
Context insensitive completion 0 - 596 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: 7
  • Position: #132 / 252
  • Number of attempts: 2
Context Insensitive completion 1 - 514 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #169 / 249
  • Number of attempts: 2
Reformat some Python - 637 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 34
  • Position: #46 / 243
  • Number of attempts: 5
Reverse characters in a line - 819 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 13
  • Position: #99 / 276
  • Number of attempts: 3
PEP8 Python Wrapping Comments and Code - 225 entries

According to PEP8, long flowy text and code should have different max line lengths. Code: 79 characters max Long flowy text: 72 characters max

  • Best score: 21
  • Best player score: 23
  • Position: #9 / 71
  • Number of attempts: 7
Reformat most common surnames - 809 entries

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

  • Best score: 23
  • Best player score: 29
  • Position: #128 / 234
  • Number of attempts: 3
Get rid of html tags - 453 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #143 / 257
  • Number of attempts: 1
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #350 / 647
  • Number of attempts: 3
Deleting folded text - 406 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: 17
  • Position: #12 / 127
  • Number of attempts: 6
Sort and add attributes - 1568 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #300 / 607
  • Number of attempts: 2
Add fold markers to a .c file - 693 entries

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

  • Best score: 30
  • Best player score: 34
  • Position: #99 / 199
  • Number of attempts: 2
Reconstruct the Sentence - 1710 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: 20
  • Position: #164 / 451
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3974 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #187 / 850
  • Number of attempts: 7
Simple text editing with Vim - 13509 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2074 / 3874
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7579 entries

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

  • Best score: 7
  • Best player score: 38
  • Position: #706 / 1871
  • Number of attempts: 3
Sergii Pidgornyi
Github:

entered into 21 challenges

contributed 0 challenges