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

V to the i - 4639 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #808 / 1856
  • Number of attempts: 2
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2011 / 4114
  • Number of attempts: 1
Subtraction - 168 entries

Solve the equations.

  • Best score: 18
  • Best player score: 27
  • Position: #38 / 58
  • Number of attempts: 2
Change name of a variable - 161 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #32 / 125
  • Number of attempts: 1
Lisp Condense - 431 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Position: #65 / 151
  • Number of attempts: 1
120 Degrees - 441 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 20
  • Position: #73 / 140
  • Number of attempts: 1
Don't know what this is - 1948 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 16
  • Position: #412 / 571
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1822 / 3637
  • Number of attempts: 2
Counting in binary - 412 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 21
  • Position: #28 / 108
  • 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: 17
  • Position: #657 / 1044
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1876 / 3919
  • Number of attempts: 2
Pairs of numbers - 345 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 55
  • Position: #115 / 129
  • Number of attempts: 1
Hole-in-one - 973 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 18
  • Position: #111 / 297
  • Number of attempts: 3
Delete unwanted lines - 358 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #40 / 215
  • Number of attempts: 2
Circle in a square - 125 entries

Probably looks more like "Egg in a rectangle" in most fonts, but it's actually 23x23.

  • Best score: 23
  • Best player score: 25
  • Position: #14 / 48
  • Number of attempts: 1
abcd > a b c d - 260 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #100 / 204
  • Number of attempts: 3
Checkerboard case pattern - 130 entries

All the squares are white. Make some of them black. But only the right ones.

  • Best score: 15
  • Best player score: 23
  • Position: #36 / 53
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1508 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #174 / 424
  • Number of attempts: 1
Get rid of html tags - 341 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 17
  • Position: #88 / 207
  • Number of attempts: 1
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: #1028 / 3410
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6004 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 40
  • Position: #738 / 1480
  • Number of attempts: 1
Heath Patterson
Twitter:

entered into 21 challenges

contributed 0 challenges