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 59384eb3652ee111a0000001

From argument to object

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

Start file
organize(cupboard, 3, 2);
prioritize(bureau, 8, 7);
realize(bannister, 4, 4);
moralize(railing, 3,9);
End file
cupboard.organize(3, 2);
bureau.prioritize(8, 7);
bannister.realize(4, 4);
railing.moralize(3,9);

View Diff

1,4c1,4
< organize(cupboard, 3, 2);
< prioritize(bureau, 8, 7);
< realize(bannister, 4, 4);
< moralize(railing, 3,9);
---
> cupboard.organize(3, 2);
> bureau.prioritize(8, 7);
> bannister.realize(4, 4);
> railing.moralize(3,9);

Solutions by @_DeVVaN_:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @toddagibson

450 active golfers, 1474 entries

Solutions by @_DeVVaN_:
17
#99 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:16AM

18
#>232 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:14AM

19
#>295 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:13AM

20
#>330 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:13AM

21
#>369 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:12AM

27
#>419 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:11AM

32
#>434 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:08AM

35
#>443 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:07AM

38
#>444 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:06AM

47
#>445 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:00AM

54
#>447 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 08:58AM

56
#>448 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 08:56AM