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

pi square vim

  • Best score: 20
  • Best player score: 24
  • Position: #73 / 131
  • Number of attempts: 1
Extract argument from function - 2292 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #477 / 740
  • Number of attempts: 2
Refactoring useless Method away - 91 entries

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

  • Best score: 47
  • Best player score: 92
  • Position: #31 / 32
  • Number of attempts: 1
increment by column in XML - 146 entries

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

  • Best score: 19
  • Best player score: 27
  • Position: #42 / 53
  • Number of attempts: 2
Happy TvvO - 396 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #181 / 197
  • Number of attempts: 1
learn vim in short time - 228 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #1 / 156
  • Number of attempts: 1
Change name of a variable - 169 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 / 132
  • Number of attempts: 1
Do you demand a shrubbery? - 1108 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 22
  • Position: #172 / 293
  • Number of attempts: 1
Where should I put the Newline? - 857 entries

Help me put the newline.

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

Vim can play tetris too!

  • Best score: 21
  • Best player score: 26
  • Position: #51 / 101
  • Number of attempts: 3
Piphilology - 131 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: 29
  • Best player score: 44
  • Position: #49 / 51
  • Number of attempts: 1
Mess in revision history - 1157 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 23
  • Position: #124 / 245
  • Number of attempts: 5
Shuffle puzzle - 317 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: #93 / 101
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10595 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 19
  • Best player score: 30
  • Position: #358 / 690
  • Number of attempts: 2
Letter case trickery - 1588 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: #98 / 509
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1550 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: #281 / 435
  • Number of attempts: 2
Saving the hashes(#) - 1978 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: #375 / 471
  • Number of attempts: 2
Let's play some Ivmgolf - 1068 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #235 / 436
  • Number of attempts: 1
Enharmonic Equivalents - 55 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 20
  • Position: #29 / 34
  • Number of attempts: 1
replacing each line of a block selection - 2912 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #367 / 761
  • Number of attempts: 4
Switch function arguments - 2035 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #539 / 641
  • Number of attempts: 1
Change the content of a string - 1442 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #263 / 546
  • Number of attempts: 2
Simple text editing with Vim - 12045 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2303 / 3528
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6369 entries

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

  • Best score: 32
  • Best player score: 37
  • Position: #520 / 1572
  • Number of attempts: 1
Robert Siemieniec
Twitter:

entered into 25 challenges

contributed 0 challenges