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

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

458 active golfers, 1508 entries

Solutions by @pyaillet:
17
#82 - pyaillet 🤘 / @pyaillet

03/17/2018 at 02:03PM

18
#>228 - pyaillet 🤘 / @pyaillet

03/17/2018 at 02:02PM

19
#>297 - pyaillet 🤘 / @pyaillet

03/17/2018 at 02:00PM

20
#>331 - pyaillet 🤘 / @pyaillet

03/17/2018 at 02:00PM

21
#>375 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:59PM

22
#>392 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:57PM

23
#>409 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:47PM

25
#>419 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:45PM

28
#>433 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:43PM

32
#>442 - pyaillet 🤘 / @pyaillet

03/17/2018 at 01:40PM