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

Swap values - 4260 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
Array transposition - 2084 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 24
  • Number of attempts: 4
Minimalist Limerick - 500 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 34
  • Number of attempts: 3
Basic renumbering - 5240 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 1
Vice versa - 7071 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
Just the middle - 10698 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • 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: 31
  • Number of attempts: 1
Words in parens - 12282 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
I forgot quotes - 14968 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 1
Swap the operands under comparison - 240 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 1
One number per line - 17274 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 2
Simple text editing with Vim - 11150 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
Team names - 1675 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 3
convert yml into java pojo field - 784 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 32
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10265 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Collect List - 4003 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 1
Swap values inside brackets - 2257 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 4
vim = 22 / 7 - 408 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Number of attempts: 1
Weston Neal
Twitter:

entered into 18 challenges

contributed 0 challenges