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 - 33483 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: 24
  • Position: #2811 / 7384
  • Number of attempts: 5
Swap values - 4554 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #653 / 1259
  • Number of attempts: 5
One number per line - 18673 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2164 / 3852
  • Number of attempts: 3
V to the i - 4771 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1049 / 1887
  • Number of attempts: 3
Search and Replace 0 - 4851 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #983 / 1604
  • Number of attempts: 3
That hyphen - 2572 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #74 / 698
  • Number of attempts: 5
Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3525 / 4174
  • Number of attempts: 5
Make HTML List - 1050 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 50
  • Position: #199 / 273
  • Number of attempts: 2
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Position: #876 / 1260
  • Number of attempts: 1
Vice versa - 7865 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #854 / 2114
  • Number of attempts: 2
Mirror Symmetry - 812 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #190 / 268
  • Number of attempts: 3
Entries sort - 82 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
  • Position: #33 / 39
  • Number of attempts: 2
Collect List - 4267 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1020 / 1188
  • Number of attempts: 4
readability - 315 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #117 / 150
  • Number of attempts: 2
Interleave lines - 159 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
  • Position: #51 / 59
  • Number of attempts: 2
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 20
  • Position: #263 / 442
  • Number of attempts: 1
Fix the XML - 1000 entries

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

  • Best score: 18
  • Best player score: 28
  • Position: #219 / 287
  • Number of attempts: 1
Line 'em up! - 396 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
  • Position: #88 / 112
  • Number of attempts: 2
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1598 / 4166
  • Number of attempts: 4
-a-b-c- - 3183 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #110 / 1132
  • Number of attempts: 5
Lisp Condense - 449 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 17
  • Position: #132 / 157
  • Number of attempts: 1
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #220 / 270
  • Number of attempts: 2
Going underground.... - 349 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
  • Position: #116 / 127
  • Number of attempts: 1
Letter case trickery - 1598 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
  • Position: #270 / 514
  • Number of attempts: 2
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3229 / 3950
  • Number of attempts: 1
Switch function arguments - 2085 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #481 / 653
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1170 / 1742
  • Number of attempts: 1
Make it more readable - 1955 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #526 / 643
  • Number of attempts: 2
Numbering a List - 1869 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Position: #335 / 646
  • Number of attempts: 2
Endre Galaczi
Twitter:

entered into 29 challenges

contributed 0 challenges