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

HS exam question - 1613 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 68
  • Position: #183 / 422
  • Number of attempts: 3
Rural Post - 4602 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #144 / 1124
  • Number of attempts: 9
Simple, Practical, and Common - 34012 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: #308 / 7513
  • Number of attempts: 8
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #875 / 3904
  • Number of attempts: 9
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1731 / 3098
  • Number of attempts: 4
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1624 / 1901
  • Number of attempts: 1
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #557 / 4255
  • Number of attempts: 3
JS notation to Immutable.js notation - 196 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 34
  • Best player score: 35
  • Position: #11 / 65
  • Number of attempts: 5
comments galore - 1100 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #117 / 433
  • Number of attempts: 2
Collect List - 4341 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #163 / 1200
  • Number of attempts: 3
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1357 / 4224
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #354 / 3716
  • Number of attempts: 5
Letter case trickery - 1686 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 12
  • Position: #302 / 525
  • Number of attempts: 2
quotes inside quotes - 3202 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: 16
  • Position: #540 / 1093
  • Number of attempts: 2
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #958 / 3991
  • Number of attempts: 6
Delete unwanted lines - 450 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #75 / 236
  • Number of attempts: 2
replacing each line of a block selection - 3067 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 31
  • Position: #678 / 789
  • Number of attempts: 1
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1305 / 1764
  • Number of attempts: 5
Replacing some words - 445 entries

How fast could it be?

  • Best score: 17
  • Best player score: 28
  • Position: #111 / 152
  • Number of attempts: 1
remove dupes from array - 1377 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: 26
  • Position: #256 / 341
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4044 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #336 / 862
  • Number of attempts: 7
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1172 / 3902
  • Number of attempts: 2
Hawk Newton
Twitter:

entered into 22 challenges

contributed 0 challenges