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

vim = 22 / 7 - 475 entries

pi square vim

  • Best score: 20
  • Best player score: 27
  • Position: #81 / 135
  • Number of attempts: 1
Alsa configuration - 513 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 35
  • Position: #105 / 128
  • Number of attempts: 1
Refactoring useless Method away - 116 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 58
  • Position: #18 / 34
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10676 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #38 / 3687
  • Number of attempts: 2
Letter case trickery - 1630 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: 10
  • Position: #79 / 518
  • Number of attempts: 4
quotes inside quotes - 3165 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: 15
  • Position: #375 / 1079
  • Number of attempts: 3
Words in parens - 12966 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #192 / 3968
  • Number of attempts: 4
fib.c cleanup - 68 entries

cleanup the file

  • Best score: 15
  • Best player score: 17
  • Position: #49 / 55
  • Number of attempts: 1
Block Fun 1 - 210 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 23
  • Position: #46 / 75
  • Number of attempts: 5
SFD-ROC: vimvimvim - 1606 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #43 / 446
  • Number of attempts: 4
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #235 / 1749
  • Number of attempts: 3
Simple text editing with Vim - 12935 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2206 / 3725
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7102 entries

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

  • Best score: 28
  • Best player score: 43
  • Position: #1032 / 1743
  • Number of attempts: 2
adi li
Twitter:

code-crafter from the order of vim

entered into 13 challenges

contributed 0 challenges