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

C Reformatting - 640 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 56
  • Number of attempts: 2
Conway sequence - 20 entries

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

  • Best score: 43
  • Best player score: 43
  • Number of attempts: 1
Make HTML List - 903 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 39
  • Number of attempts: 2
Format java properties - 63 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 36
  • Number of attempts: 2
Do you demand a shrubbery? - 1016 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
Order and join - 756 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 13
  • Number of attempts: 3
Collect List - 3536 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Simple, Practical, and Common - 25406 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: 22
  • Number of attempts: 3
Search and Replace 0 - 4148 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 2
Applying same text modification in several lines - 1723 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Saving the hashes(#) - 1765 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 29
  • Number of attempts: 1
Simple text editing with Vim - 10474 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
V to the i - 3954 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Just the middle - 9346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Combines all items - 241 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Add semicolons - 2260 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Count both ways - 875 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 2
camel riding - 693 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
Basic renumbering - 4651 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 3
Box it - 3296 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4
One number per line - 13098 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 4
-a-b-c- - 2617 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
Copy three lines - 2095 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 4
Every other line - 2125 entries

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 2
Scrambled numbers - 730 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 23
  • Number of attempts: 4
Space out the alphabet - 1381 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 1
Jerry Wu
Twitter:

People are like snowflakes: Piles of them on the road make it hard to drive.

entered into 26 challenges

contributed 0 challenges