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 @0liverChrist:

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

179 active golfers, 453 entries

Solutions by @0liverChrist:
19
#50 - Oliver Christ / @0liverChrist

10/08/2013 at 09:26PM

20
#>73 - Oliver Christ / @0liverChrist

10/08/2013 at 09:24PM

21
#>107 - Oliver Christ / @0liverChrist

10/08/2013 at 09:13PM

23
#>148 - Oliver Christ / @0liverChrist

10/08/2013 at 09:09PM

24
#>156 - Oliver Christ / @0liverChrist

10/08/2013 at 09:08PM

29
#>171 - Oliver Christ / @0liverChrist

10/08/2013 at 08:50PM

36
#>174 - Oliver Christ / @0liverChrist

10/08/2013 at 08:49PM