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

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

129 active golfers, 540 entries

Solutions by @zacoxi:
30
#5 - Dax / @zacoxi

10/05/2018 at 06:16AM

32
#>42 - Dax / @zacoxi

10/05/2018 at 06:14AM

33
#>49 - Dax / @zacoxi

10/05/2018 at 06:12AM

34
#>56 - Dax / @zacoxi

10/05/2018 at 06:09AM

35
#>60 - Dax / @zacoxi

10/05/2018 at 05:44AM

35
#>60 - Dax / @zacoxi

10/05/2018 at 06:08AM

36
#>70 - Dax / @zacoxi

10/05/2018 at 05:37AM

37
#>82 - Dax / @zacoxi

10/22/2018 at 08:58AM

38
#>89 - Dax / @zacoxi

10/05/2018 at 02:54AM

38
#>89 - Dax / @zacoxi

10/05/2018 at 03:02AM

39
#>98 - Dax / @zacoxi

11/20/2018 at 02:14AM

42
#>108 - Dax / @zacoxi

10/05/2018 at 02:41AM