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

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

417 active golfers, 1262 entries

Solutions by @songz:
17
#6 - Song Zheng / @songz

06/08/2017 at 05:52PM

17
#>12 - Song Zheng / @songz

06/14/2017 at 10:54PM

18
#>151 - Song Zheng / @songz

06/08/2017 at 05:48PM

18
#>151 - Song Zheng / @songz

06/08/2017 at 05:56PM

18
#>159 - Song Zheng / @songz

06/14/2017 at 10:53PM

18
#>159 - Song Zheng / @songz

06/15/2017 at 01:05AM

19
#>245 - Song Zheng / @songz

06/08/2017 at 05:43PM

19
#>245 - Song Zheng / @songz

06/08/2017 at 05:54PM

19
#>245 - Song Zheng / @songz

06/08/2017 at 06:00PM

19
#>248 - Song Zheng / @songz

06/14/2017 at 10:52PM

20
#>277 - Song Zheng / @songz

06/08/2017 at 05:40PM

24
#>376 - Song Zheng / @songz

06/08/2017 at 05:38PM

83
#>417 - Song Zheng / @songz

06/15/2017 at 01:02AM