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

Swap function parameters and delete all comments in python. - 629 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 22
  • Position: #53 / 170
  • Number of attempts: 2
Delete the last function argument in python. - 478 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #68 / 174
  • Number of attempts: 1
Convert list of enums to list of localization terms - 183 entries

While making my game Piloteer, I had a large list of TaskTypes and needed to convert them to an equivalent list of localization terms, to be used when translating the game's text into different languages.

  • Best score: 75
  • Best player score: 105
  • Position: #22 / 60
  • Number of attempts: 1
delete swap - 1880 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #395 / 575
  • Number of attempts: 5
hello-world-vimgolf - 2532 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #352 / 725
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 860 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #348 / 446
  • Number of attempts: 1
Search and Replace 0 - 5115 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #764 / 1667
  • Number of attempts: 1
The holy-grail may help - 394 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #169 / 218
  • Number of attempts: 1
A Simple One - 1077 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: #600 / 676
  • Number of attempts: 2
Change the content of a string - 1766 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #359 / 648
  • Number of attempts: 2
Deleting folded text - 408 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: 22
  • Position: #93 / 128
  • Number of attempts: 2
Sort and add attributes - 1572 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #317 / 610
  • Number of attempts: 1
Felix W.
Github:

entered into 12 challenges

contributed 0 challenges