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

Simple, Practical, and Common - 32963 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
  • Position: #5768 / 7277
  • Number of attempts: 1
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #578 / 1857
  • Number of attempts: 6
Array propagate - 311 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 24
  • Position: #36 / 110
  • Number of attempts: 6
Search and Replace 0 - 4681 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #523 / 1550
  • Number of attempts: 4
Sorting a glossary - 115 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
  • Position: #59 / 74
  • Number of attempts: 1
Order and join - 881 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #52 / 242
  • Number of attempts: 7
Scrambled numbers - 772 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Position: #70 / 179
  • Number of attempts: 10
VimGolfNight - 505 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #260 / 330
  • Number of attempts: 1
Don't know what this is - 1951 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
  • Position: #99 / 572
  • Number of attempts: 15
Switch function arguments - 1985 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #155 / 628
  • Number of attempts: 7
PHP <--> Java class conversion Part 1 - 211 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 98
  • Position: #34 / 61
  • Number of attempts: 2
HTML to Haml - 820 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 27
  • Position: #38 / 199
  • Number of attempts: 16
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #109 / 667
  • Number of attempts: 10
fsj
Twitter:

have you ever seen a pink elephant? #lickface

entered into 13 challenges

contributed 0 challenges