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

Search and Replace 0 - 5162 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #143 / 1675
  • Number of attempts: 4
remove dupes from array - 1377 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: 22
  • Position: #160 / 341
  • Number of attempts: 3
imports alignment (python) - 725 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 22
  • Position: #102 / 203
  • Number of attempts: 3
Ruby 1.9 hashes - 1313 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: 18
  • Position: #346 / 419
  • Number of attempts: 2
CSV to JSON - 178 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 60
  • Position: #9 / 67
  • Number of attempts: 4
A Simple One - 1093 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: #238 / 681
  • Number of attempts: 2
Increment, increment, increment.... - 709 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #222 / 417
  • Number of attempts: 2
Make Fancy Header - 1109 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 24
  • Position: #307 / 356
  • Number of attempts: 1
Get rid of html tags - 465 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 29
  • Position: #251 / 262
  • Number of attempts: 1
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #292 / 656
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2274 / 3907
  • Number of attempts: 1
Benjamin Sullivan
Twitter:

Rails developer, autoitchscratcher

entered into 11 challenges

contributed 0 challenges