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

Convert pandoc unordered list to a numbered list - 141 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: 22
  • Position: #5 / 52
  • Number of attempts: 4
Vertical Limit - 2300 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #172 / 701
  • Number of attempts: 6
replacing each line of a block selection - 2740 entries

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

  • Best score: 18
  • Best player score: 20
  • Position: #222 / 724
  • Number of attempts: 7
Switch function arguments - 1933 entries

How to switch two arguments of a function.

  • Best score: 3
  • Best player score: 11
  • Position: #32 / 617
  • Number of attempts: 5
remove dupes from array - 1260 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Position: #40 / 321
  • Number of attempts: 8
Reformat long lines - 320 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 16
  • Position: #30 / 125
  • Number of attempts: 5
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 23
  • Position: #9 / 190
  • Number of attempts: 5
Ruby 1.9 hashes - 1113 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 12
  • Position: #41 / 372
  • Number of attempts: 5
A Simple One - 870 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #272 / 581
  • Number of attempts: 2
Reverse Simple Deletion - 739 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #3 / 418
  • Number of attempts: 3

Contributed Challenges

Vertical Limit - 2300 entries

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

Frank Twitting
Twitter:

iPhone Android Web2.0 Innovation Ideas Physics

entered into 10 challenges

contributed 1 challenges