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 4db0b1c8e8eb0f564b00001c

Case preserving word replacement

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

Start file
function Human() {

}

Human.prototype = {
	humanStuff: function(){},
	doHumanStuff: function() {
		useDigitalWatch();
	}
}
End file
function Dog() {

}

Dog.prototype = {
	dogStuff: function(){},
	doDogStuff: function() {
		useDigitalWatch();
	}
}

View Diff

1c1
< function Human() {
---
> function Dog() {
5,7c5,7
< Human.prototype = {
< 	humanStuff: function(){},
< 	doHumanStuff: function() {
---
> Dog.prototype = {
> 	dogStuff: function(){},
> 	doDogStuff: function() {
10a11
> 

Solutions by @atan59vg:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @captain_morgan

180 active golfers, 454 entries

Solutions by @atan59vg:
19
#19 - Atan59 / @atan59vg

07/15/2011 at 12:08PM

20
#>71 - Atan59 / @atan59vg

07/15/2011 at 12:06PM

21
#>91 - Atan59 / @atan59vg

07/15/2011 at 12:02PM

24
#>155 - Atan59 / @atan59vg

07/15/2011 at 12:01PM

27
#>167 - Atan59 / @atan59vg

07/15/2011 at 12:00PM

57
#>179 - Atan59 / @atan59vg

07/15/2011 at 11:59AM