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

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

  • Best score: 12
  • Best player score: 12
  • Position: #143 / 1550
  • Number of attempts: 4
remove dupes from array - 1290 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: #152 / 325
  • Number of attempts: 3
imports alignment (python) - 648 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 22
  • Position: #98 / 192
  • Number of attempts: 3
Ruby 1.9 hashes - 1172 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: #324 / 386
  • Number of attempts: 2
CSV to JSON - 154 entries

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

  • Best score: 56
  • Best player score: 60
  • Position: #7 / 61
  • Number of attempts: 4
A Simple One - 937 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 / 618
  • Number of attempts: 2
Increment, increment, increment.... - 591 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #192 / 378
  • Number of attempts: 2
Make Fancy Header - 978 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 24
  • Position: #286 / 329
  • Number of attempts: 1
Get rid of html tags - 341 entries

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

  • Best score: 15
  • Best player score: 29
  • Position: #201 / 207
  • Number of attempts: 1
Change the content of a string - 1354 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #222 / 522
  • Number of attempts: 1
Simple text editing with Vim - 11662 entries

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

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

Rails developer, autoitchscratcher

entered into 11 challenges

contributed 0 challenges