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 - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #613 / 1282
  • Number of attempts: 1
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1826 / 3889
  • Number of attempts: 2
vim = 22 / 7 - 475 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Position: #105 / 135
  • Number of attempts: 1
Swap values inside brackets - 2523 entries

Easy challenge.

  • Best score: 13
  • Best player score: 16
  • Position: #229 / 587
  • Number of attempts: 4
Swap the operands under comparison - 313 entries

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

  • Best score: 19
  • Best player score: 22
  • Position: #51 / 105
  • Number of attempts: 1
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Position: #3972 / 4230
  • Number of attempts: 1
Team names - 1848 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #374 / 592
  • Number of attempts: 3
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #704 / 1274
  • Number of attempts: 1
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1647 / 2146
  • Number of attempts: 2
Array transposition - 2436 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 24
  • Position: #280 / 452
  • Number of attempts: 4
convert yml into java pojo field - 867 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
  • Position: #153 / 230
  • Number of attempts: 1
Collect List - 4317 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #851 / 1194
  • Number of attempts: 1
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1792 / 4202
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2341 / 3700
  • Number of attempts: 1
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2459 / 3977
  • Number of attempts: 2
Minimalist Limerick - 520 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 34
  • Position: #56 / 174
  • Number of attempts: 3
Saving the hashes(#) - 2067 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
  • Position: #401 / 480
  • Number of attempts: 1
Simple text editing with Vim - 13273 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1706 / 3811
  • Number of attempts: 2
Weston Neal
Twitter:

entered into 18 challenges

contributed 0 challenges