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 @ise0615:

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

179 active golfers, 453 entries

Solutions by @ise0615:
19
#42 - ise0615 / @ise0615

05/03/2012 at 03:30PM

21
#>103 - ise0615 / @ise0615

05/03/2012 at 03:28PM

22
#>123 - ise0615 / @ise0615

05/03/2012 at 03:21PM

23
#>144 - ise0615 / @ise0615

05/03/2012 at 03:18PM

24
#>156 - ise0615 / @ise0615

05/03/2012 at 03:17PM

25
#>162 - ise0615 / @ise0615

05/03/2012 at 03:14PM

27
#>166 - ise0615 / @ise0615

05/03/2012 at 03:12PM

31
#>172 - ise0615 / @ise0615

05/03/2012 at 03:08PM

38
#>175 - ise0615 / @ise0615

05/03/2012 at 03:05PM