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

Rural Post - 4105 entries

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #841 / 3787
  • Number of attempts: 9
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1689 / 2988
  • Number of attempts: 4
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1564 / 1835
  • Number of attempts: 1
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #557 / 4112
  • Number of attempts: 3
JS notation to Immutable.js notation - 155 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: 35
  • Best player score: 35
  • Position: #7 / 59
  • Number of attempts: 5
comments galore - 970 entries

Basic comment reformatting

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

Convert to comma separated list.

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

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1324 / 4114
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #354 / 3637
  • Number of attempts: 5
Letter case trickery - 1547 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: #286 / 498
  • Number of attempts: 2
quotes inside quotes - 3026 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: #511 / 1044
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #933 / 3919
  • Number of attempts: 6
Delete unwanted lines - 358 entries

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

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

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

  • Best score: 18
  • Best player score: 31
  • Position: #633 / 732
  • Number of attempts: 1
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1259 / 1701
  • Number of attempts: 5
Replacing some words - 412 entries

How fast could it be?

  • Best score: 17
  • Best player score: 28
  • Position: #106 / 145
  • Number of attempts: 1
remove dupes from array - 1290 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: #246 / 325
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2978 entries

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

  • Best score: 16
  • Best player score: 22
  • Position: #246 / 662
  • Number of attempts: 7
Simple text editing with Vim - 11624 entries

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

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

entered into 21 challenges

contributed 0 challenges