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

A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1653 / 3717
  • Number of attempts: 3
attr_aligner - 3569 entries

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

  • Best score: 7
  • Best player score: 34
  • Position: #546 / 712
  • Number of attempts: 2
quotes inside quotes - 3210 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: 7
  • Best player score: 16
  • Position: #570 / 1097
  • Number of attempts: 3
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2599 / 3995
  • Number of attempts: 2
Checkerboard case pattern - 187 entries

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

  • Best score: 15
  • Best player score: 24
  • Position: #47 / 64
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1643 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: #285 / 458
  • Number of attempts: 2
Convert pandoc unordered list to a numbered list - 215 entries

I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?

  • Best score: 20
  • Best player score: 51
  • Position: #60 / 62
  • Number of attempts: 1
Vertical Limit - 2642 entries

transform a succession of one word lines to a an array of strings

  • Best score: 10
  • Best player score: 30
  • Position: #672 / 781
  • Number of attempts: 1
replacing each line of a block selection - 3070 entries

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

  • Best score: 7
  • Best player score: 21
  • Position: #331 / 791
  • Number of attempts: 2
Reverse and double space - 514 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 34
  • Position: #199 / 204
  • Number of attempts: 1
constructor - 198 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 171
  • Position: #54 / 62
  • Number of attempts: 3
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 11
  • Position: #33 / 1767
  • Number of attempts: 3
Format the output - 158 entries

Sometimes your standard out is a little hard to read. Take this multilevel hash and make it human readable.

  • Best score: 35
  • Best player score: 98
  • Position: #38 / 41
  • Number of attempts: 1
Ugly spreadsheet copy/paste to CSV - 1046 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 49
  • Position: #152 / 199
  • Number of attempts: 2
Replacing some words - 445 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Position: #74 / 152
  • Number of attempts: 3
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #429 / 659
  • Number of attempts: 2
Sort entries based on date - 432 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 23
  • Position: #111 / 121
  • Number of attempts: 4
Thijs Brobbel
Twitter:

entered into 17 challenges

contributed 0 challenges