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: 24
  • Position: #75 / 135
  • Number of attempts: 1
Extract argument from function - 2397 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #494 / 766
  • Number of attempts: 2
Refactoring useless Method away - 134 entries

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

  • Best score: 47
  • Best player score: 92
  • Position: #36 / 37
  • Number of attempts: 1
increment by column in XML - 165 entries

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

  • Best score: 19
  • Best player score: 27
  • Position: #44 / 56
  • Number of attempts: 2
Happy TvvO - 436 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 14
  • Position: #191 / 208
  • Number of attempts: 1
learn vim in short time - 245 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #1 / 165
  • Number of attempts: 1
Change name of a variable - 182 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: #20 / 140
  • Number of attempts: 1
Do you demand a shrubbery? - 1184 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 22
  • Position: #178 / 305
  • Number of attempts: 1
Where should I put the Newline? - 896 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #13 / 444
  • Number of attempts: 2
Vim tetris - 384 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 26
  • Position: #54 / 105
  • Number of attempts: 3
Piphilology - 174 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 28
  • Best player score: 44
  • Position: #53 / 55
  • Number of attempts: 1
Mess in revision history - 1228 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 23
  • Position: #128 / 256
  • Number of attempts: 5
Shuffle puzzle - 360 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 19
  • Position: #97 / 105
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #197 / 3711
  • Number of attempts: 3
attr_aligner - 3565 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 30
  • Position: #369 / 709
  • Number of attempts: 2
Letter case trickery - 1663 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: #101 / 522
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1628 entries

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

  • Best score: 8
  • Best player score: 12
  • Position: #290 / 454
  • Number of attempts: 2
Saving the hashes(#) - 2094 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 30
  • Position: #384 / 484
  • Number of attempts: 2
Let's play some Ivmgolf - 1145 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #245 / 454
  • Number of attempts: 1
Enharmonic Equivalents - 62 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 20
  • Position: #31 / 38
  • Number of attempts: 1
replacing each line of a block selection - 3040 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #379 / 785
  • Number of attempts: 4
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #567 / 678
  • Number of attempts: 1
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #312 / 647
  • Number of attempts: 2
Simple text editing with Vim - 13509 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2516 / 3874
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7579 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #570 / 1871
  • Number of attempts: 1
Robert Siemieniec
Twitter:

entered into 25 challenges

contributed 0 challenges