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

pi square vim

  • Best score: 20
  • Best player score: 27
  • Position: #78 / 130
  • Number of attempts: 1
Alsa configuration - 481 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 35
  • Position: #102 / 123
  • Number of attempts: 1
Refactoring useless Method away - 91 entries

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

  • Best score: 47
  • Best player score: 58
  • Position: #16 / 32
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #38 / 3638
  • Number of attempts: 2
Letter case trickery - 1553 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: #74 / 500
  • Number of attempts: 4
quotes inside quotes - 3030 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: #357 / 1045
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #175 / 3919
  • Number of attempts: 4
fib.c cleanup - 60 entries

cleanup the file

  • Best score: 15
  • Best player score: 17
  • Position: #47 / 51
  • Number of attempts: 1
Block Fun 1 - 179 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 23
  • Position: #42 / 69
  • Number of attempts: 5
SFD-ROC: vimvimvim - 1510 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 / 424
  • Number of attempts: 4
switch variable - 4944 entries

how fast can you switch two variable ?

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

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

  • Best score: 13
  • Best player score: 16
  • Position: #2020 / 3418
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 43
  • Position: #932 / 1486
  • Number of attempts: 2
adi li
Twitter:

code-crafter from the order of vim

entered into 13 challenges

contributed 0 challenges