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

Make HTML List - 911 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 50
  • Number of attempts: 2
Going underground.... - 291 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 45
  • Number of attempts: 1
Line 'em up! - 275 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 28
  • Number of attempts: 2
Fix the XML - 868 entries

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

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 1
Simple, Practical, and Common - 26127 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: 14
  • Best player score: 24
  • Number of attempts: 5
I forgot quotes - 12353 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 4
Gray area - 650 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 2
Space out the alphabet - 1391 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 20
  • Number of attempts: 1
Switch function arguments - 1843 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Search and Replace 0 - 4187 entries

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

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 3
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
Entries sort - 71 entries

It cames to my mind a weird idea : sorting parts of my .vimrc. Take few minutes to sort out this, it's easy !

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 2
switch variable - 4376 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
V to the i - 4054 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
That hyphen - 2220 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 5
Basic renumbering - 4756 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Number of attempts: 1
Numbering a List - 1746 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Number of attempts: 2
Just the middle - 9524 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 5
Words in parens - 11250 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 1
Letter case trickery - 1450 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 2
Collect List - 3575 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 4
readability - 285 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Number of attempts: 2
Vice versa - 6121 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 2
Make it more readable - 1765 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 2
Swap values - 3672 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 5
Interleave lines - 125 entries

This is some kind of « paste -d'\n' c b a ». There are many ways to achieve this.. just find the shortest!

  • Best score: 17
  • Best player score: 38
  • Number of attempts: 2
Lisp Condense - 387 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
Mirror Symmetry - 710 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Number of attempts: 3
One number per line - 13705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 3
Endre Galaczi
Twitter:

entered into 29 challenges

contributed 0 challenges