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

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

129 active golfers, 540 entries

Solutions by @TJokioja:
32
#44 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:09PM

33
#>49 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:07PM

34
#>56 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:06PM

35
#>60 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:04PM

36
#>70 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:02PM

37
#>82 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:00PM

38
#>90 - Tuomas Jokioja / @TJokioja

10/12/2018 at 04:57PM

40
#>103 - Tuomas Jokioja / @TJokioja

10/12/2018 at 04:53PM

46
#>121 - Tuomas Jokioja / @TJokioja

10/12/2018 at 04:51PM

68
#>129 - Tuomas Jokioja / @TJokioja

10/12/2018 at 04:48PM