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

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 68
  • Position: #181 / 419
  • Number of attempts: 3
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #144 / 1116
  • Number of attempts: 9
Simple, Practical, and Common - 33866 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 / 7474
  • Number of attempts: 8
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #872 / 3889
  • Number of attempts: 9
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1725 / 3085
  • Number of attempts: 4
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1615 / 1891
  • Number of attempts: 1
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #557 / 4230
  • Number of attempts: 3
JS notation to Immutable.js notation - 186 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: #10 / 63
  • Number of attempts: 5
comments galore - 1073 entries

Basic comment reformatting

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

Convert to comma separated list.

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

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1349 / 4202
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #354 / 3700
  • Number of attempts: 5
Letter case trickery - 1644 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: #297 / 520
  • Number of attempts: 2
quotes inside quotes - 3185 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: #537 / 1086
  • Number of attempts: 2
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #953 / 3977
  • Number of attempts: 6
Delete unwanted lines - 431 entries

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

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

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

  • Best score: 18
  • Best player score: 31
  • Position: #670 / 780
  • Number of attempts: 1
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1296 / 1754
  • Number of attempts: 5
Replacing some words - 428 entries

How fast could it be?

  • Best score: 17
  • Best player score: 28
  • Position: #110 / 151
  • Number of attempts: 1
remove dupes from array - 1360 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: #254 / 337
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3852 entries

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

  • Best score: 16
  • Best player score: 22
  • Position: #319 / 829
  • Number of attempts: 7
Simple text editing with Vim - 13262 entries

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

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

entered into 22 challenges

contributed 0 challenges