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

Words in parens - 12282 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 4
Don't know what this is - 1883 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
  • Number of attempts: 1
Simple, Practical, and Common - 31254 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: 12
One number per line - 17271 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
quotes inside quotes - 2965 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
  • Number of attempts: 1
Saving the hashes(#) - 1876 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
  • Number of attempts: 1
Team names - 1675 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 5
vim1001 - 244 entries

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

  • Best score: 17
  • Best player score: 23
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10259 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Do you demand a shrubbery? - 1043 entries

Use :redir and crush the emacsgolfers.

  • Best score: 8
  • Best player score: 32
  • Number of attempts: 1
V to the i - 4462 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Align commas - 957 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
  • Number of attempts: 1
switch variable - 4741 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
comments galore - 928 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
-a-b-c- - 2954 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
NBCU Weekly Challenge - #0 - 124 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
  • Number of attempts: 1
Vice versa - 7069 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 5
Just the middle - 10694 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
I forgot quotes - 14959 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 1
Lisp Condense - 400 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
Adv_Zxy
Twitter:

entered into 21 challenges

contributed 0 challenges