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

New teacher - 836 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #20 / 174
  • Number of attempts: 7
Replace word while reserving first letter case - 563 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #14 / 113
  • Number of attempts: 12
months to html list items - 957 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #75 / 254
  • Number of attempts: 5
Quicksort - 1875 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 7
  • Position: #150 / 411
  • Number of attempts: 5
Simple, Practical, and Common - 33571 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
  • Position: #271 / 7405
  • Number of attempts: 12
One number per line - 18709 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #26 / 3856
  • Number of attempts: 6
V to the i - 4796 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #856 / 1891
  • Number of attempts: 2
Just the middle - 11423 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #532 / 4185
  • Number of attempts: 4
Team names - 1834 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #72 / 587
  • Number of attempts: 5
Vice versa - 7898 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #121 / 2124
  • Number of attempts: 5
comments galore - 1041 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #75 / 423
  • Number of attempts: 3
Align commas - 1092 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 73
  • Position: #244 / 245
  • Number of attempts: 1
I forgot quotes - 15967 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #331 / 4174
  • Number of attempts: 6
vim1001 - 307 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 23
  • Position: #53 / 110
  • Number of attempts: 3
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #881 / 1137
  • Number of attempts: 1
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Position: #70 / 158
  • Number of attempts: 1
NBCU Weekly Challenge - #0 - 139 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 30
  • Best player score: 32
  • Position: #30 / 58
  • Number of attempts: 1
Do you demand a shrubbery? - 1158 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #249 / 300
  • Number of attempts: 1
Don't know what this is - 2014 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: 16
  • Position: #448 / 582
  • Number of attempts: 1
Where should I put the Newline? - 881 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 9
  • Position: #420 / 437
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10656 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #877 / 3679
  • Number of attempts: 3
quotes inside quotes - 3154 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #842 / 1075
  • Number of attempts: 1
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #636 / 3960
  • Number of attempts: 4
Saving the hashes(#) - 2053 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: 41
  • Position: #454 / 479
  • Number of attempts: 1
switch variable - 5065 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #831 / 1745
  • Number of attempts: 1
Adv_Zxy
Twitter:

entered into 25 challenges

contributed 0 challenges