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

Combines all items - 255 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
remove dupes from array - 1260 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 10
SFD-ROC: vimvimvim - 1390 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 7
Just the middle - 10565 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
Vice versa - 6999 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
I forgot quotes - 14699 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Order and join - 811 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 5
Numbering a List - 1764 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Words in parens - 12152 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Collect List - 3962 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
attr_aligner - 3246 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 27
  • Number of attempts: 9
One number per line - 16908 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 7
Scrambled numbers - 759 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Number of attempts: 10
Simple, Practical, and Common - 30761 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: 6
Make it more readable - 1812 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 12
A HAPPY NEW YEAR 2014 ! - 10188 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Every other line - 2564 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 3
Get rid of html tags - 316 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 2
Simple text editing with Vim - 11104 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
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: 34
  • Number of attempts: 1
Shebangs for all - 1672 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 10
quotes inside quotes - 2952 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: 14
  • Number of attempts: 5
setNull
Twitter:

entered into 22 challenges

contributed 0 challenges