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

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

458 active golfers, 1508 entries

Solutions by @todeshmukh:
17
#146 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:37PM

18
#>264 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:36PM

19
#>307 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:35PM

20
#>347 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:35PM

21
#>383 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:33PM

22
#>400 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:33PM

23
#>413 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:31PM

24
#>417 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:31PM

25
#>422 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:28PM

26
#>426 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:27PM

27
#>430 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:23PM

28
#>435 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:21PM

29
#>436 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:19PM

30
#>438 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:11PM

31
#>440 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:08PM

32
#>447 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 10:06PM

33
#>451 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 09:46PM

38
#>453 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 08:54PM

39
#>453 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 08:28PM

54
#>456 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 08:21PM

59
#>456 - Tejaswini Deshmukh / @todeshmukh

09/10/2022 at 07:37PM