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 - 32953 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: #2765 / 7275
  • Number of attempts: 5
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #639 / 1241
  • Number of attempts: 5
One number per line - 18394 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2128 / 3792
  • Number of attempts: 3
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1034 / 1857
  • Number of attempts: 3
Search and Replace 0 - 4676 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #948 / 1549
  • Number of attempts: 3
That hyphen - 2500 entries

"vim vi improved"

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3475 / 4114
  • Number of attempts: 5
Make HTML List - 987 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 50
  • Position: #188 / 261
  • Number of attempts: 2
Basic renumbering - 5436 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Position: #853 / 1228
  • Number of attempts: 1
Vice versa - 7530 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #826 / 2047
  • Number of attempts: 2
Mirror Symmetry - 781 entries

Add backslashes.

  • Best score: 7
  • Best player score: 13
  • Position: #184 / 262
  • Number of attempts: 3
Entries sort - 76 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: #30 / 35
  • Number of attempts: 2
Collect List - 4184 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1001 / 1167
  • Number of attempts: 4
readability - 306 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #115 / 145
  • Number of attempts: 2
Interleave lines - 134 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: #47 / 55
  • Number of attempts: 2
Space out the alphabet - 1595 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 20
  • Position: #258 / 434
  • Number of attempts: 1
Fix the XML - 958 entries

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

  • Best score: 18
  • Best player score: 28
  • Position: #211 / 279
  • Number of attempts: 1
Line 'em up! - 367 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: #82 / 105
  • Number of attempts: 2
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1579 / 4115
  • Number of attempts: 4
-a-b-c- - 3118 entries

Put hyphens everywhere.

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

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 17
  • Position: #128 / 152
  • Number of attempts: 1
Gray area - 702 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #213 / 260
  • Number of attempts: 2
Going underground.... - 315 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: #112 / 122
  • Number of attempts: 1
Letter case trickery - 1553 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: #265 / 500
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3204 / 3919
  • Number of attempts: 1
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #463 / 627
  • Number of attempts: 1
switch variable - 4937 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1150 / 1707
  • Number of attempts: 1
Make it more readable - 1897 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #513 / 624
  • Number of attempts: 2
Numbering a List - 1831 entries

Pretty simple, number the list.

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

entered into 29 challenges

contributed 0 challenges