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 5ba4962fbbac05000bc2ddec

Preferably without multi-cursor plugin

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

Start file
newState.set('foo', foo);
newState.set('bar', bar);
newState.set('banana', banana);
newState.set('bears', bears);
End file
state.foo = payload.foo;
state.bar = payload.bar;
state.banana = payload.banana;
state.bears = payload.bears;

View Diff

1,4c1,4
< newState.set('foo', foo);
< newState.set('bar', bar);
< newState.set('banana', banana);
< newState.set('bears', bears);
---
> state.foo = payload.foo;
> state.bar = payload.bar;
> state.banana = payload.banana;
> state.bears = payload.bears;

Solutions by @37fatos:

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

129 active golfers, 540 entries

Solutions by @37fatos:
30
#17 - A A A / @37fatos

01/25/2021 at 08:16PM

31
#>32 - A A A / @37fatos

01/25/2021 at 08:13PM

31
#>32 - A A A / @37fatos

01/25/2021 at 08:14PM

32
#>47 - A A A / @37fatos

01/25/2021 at 08:10PM

33
#>54 - A A A / @37fatos

01/25/2021 at 08:05PM

34
#>57 - A A A / @37fatos

01/25/2021 at 08:04PM

34
#>57 - A A A / @37fatos

01/25/2021 at 08:07PM

35
#>66 - A A A / @37fatos

01/25/2021 at 07:55PM

35
#>66 - A A A / @37fatos

01/25/2021 at 07:58PM

35
#>66 - A A A / @37fatos

01/25/2021 at 07:59PM

36
#>80 - A A A / @37fatos

01/25/2021 at 08:02PM

37
#>87 - A A A / @37fatos

01/25/2021 at 07:53PM