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

Fix the XML - 920 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 9
Whitespace, empty lines and tabs - 2733 entries

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

  • Best score: 16
  • Best player score: 33
  • Number of attempts: 2
Sudoku table - 58 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 71
  • Number of attempts: 1
Extract argument from function - 2138 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Make HTML List - 924 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 35
  • Number of attempts: 2
Maze path - 32 entries

Follow the given motions and mark your path with Xs. Attention: This maze is quite big (20x20), please set your terminal size to at least 82.

  • Best score: 25
  • Best player score: 117
  • Number of attempts: 1
That hyphen - 2411 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 8
Don't know what this is - 1884 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: 7
I forgot quotes - 15122 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 5
Just the middle - 10815 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
Mirror Symmetry - 739 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
camel riding - 731 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
V to the i - 4505 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Search and Replace 0 - 4477 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Simple, Practical, and Common - 31660 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: 10
A HAPPY NEW YEAR 2014 ! - 10323 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
One number per line - 17456 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 6
Collect List - 4029 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
David Willming
Twitter:

entered into 18 challenges

contributed 0 challenges