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

PHP <--> Java class conversion Part 1 - 178 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 98
  • Number of attempts: 2
HTML to Haml - 722 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 27
  • Number of attempts: 16
Switch function arguments - 1843 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 7
V to the i - 3975 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
Scrambled numbers - 730 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Number of attempts: 10
Sorting a glossary - 101 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 1
Simple, Practical, and Common - 25725 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: 32
  • Number of attempts: 1
Order and join - 756 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Don't know what this is - 1769 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 15
VimGolfNight - 458 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2557 entries

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

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 10
Search and Replace 0 - 4166 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Array propagate - 241 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 24
  • Number of attempts: 6
fsj
Twitter:

have you ever seen a pink elephant? #lickface

entered into 13 challenges

contributed 0 challenges