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 9v0063cb8c9c000000000248

Filter number combinations that don't add to 11

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

Start file
1+1+2+2
1+1+2+4
1+1+2+6
1+1+2+8
1+1+4+2
1+1+4+4
1+1+4+6
1+1+4+8
1+1+6+2
1+1+6+4
1+1+6+6
1+1+6+8
1+1+8+2
1+1+8+4
1+1+8+6
1+1+8+8
1+3+2+2
1+3+2+4
1+3+2+6
1+3+2+8
1+3+4+2
1+3+4+4
1+3+4+6
1+3+4+8
1+3+6+2
1+3+6+4
1+3+6+6
1+3+6+8
1+3+8+2
1+3+8+4
1+3+8+6
1+3+8+8
1+5+2+2
1+5+2+4
1+5+2+6
1+5+2+8
1+5+4+2
1+5+4+4
1+5+4+6
1+5+4+8
1+5+6+2
1+5+6+4
1+5+6+6
1+5+6+8
1+5+8+2
1+5+8+4
1+5+8+6
1+5+8+8
1+7+2+2
1+7+2+4
1+7+2+6
1+7+2+8
1+7+4+2
1+7+4+4
1+7+4+6
1+7+4+8
1+7+6+2
1+7+6+4
1+7+6+6
1+7+6+8
1+7+8+2
1+7+8+4
1+7+8+6
1+7+8+8
2+1+2+2
2+1+2+4
2+1+2+6
2+1+2+8
2+1+4+2
2+1+4+4
2+1+4+6
2+1+4+8
2+1+6+2
2+1+6+4
2+1+6+6
2+1+6+8
2+1+8+2
2+1+8+4
2+1+8+6
2+1+8+8
2+3+2+2
2+3+2+4
2+3+2+6
2+3+2+8
2+3+4+2
2+3+4+4
2+3+4+6
2+3+4+8
2+3+6+2
2+3+6+4
2+3+6+6
2+3+6+8
2+3+8+2
2+3+8+4
2+3+8+6
2+3+8+8
2+5+2+2
2+5+2+4
2+5+2+6
2+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3+5+6+8
< 3+5+8+2
< 3+5+8+4
< 3+5+8+6
< 3+5+8+8
< 3+7+2+2
< 3+7+2+4
< 3+7+2+6
< 3+7+2+8
< 3+7+4+2
< 3+7+4+4
< 3+7+4+6
< 3+7+4+8
< 3+7+6+2
< 3+7+6+4
< 3+7+6+6
< 3+7+6+8
< 3+7+8+2
< 3+7+8+4
< 3+7+8+6
< 3+7+8+8
< 4+1+2+2
< 4+1+2+4
< 4+1+2+6
< 4+1+2+8
< 4+1+4+2
< 4+1+4+4
< 4+1+4+6
< 4+1+4+8
< 4+1+6+2
< 4+1+6+4
< 4+1+6+6
< 4+1+6+8
< 4+1+8+2
< 4+1+8+4
< 4+1+8+6
< 4+1+8+8
< 4+3+2+2
< 4+3+2+4
< 4+3+2+6
< 4+3+2+8
< 4+3+4+2
< 4+3+4+4
< 4+3+4+6
< 4+3+4+8
< 4+3+6+2
< 4+3+6+4
< 4+3+6+6
< 4+3+6+8
< 4+3+8+2
< 4+3+8+4
< 4+3+8+6
< 4+3+8+8
< 4+5+2+2
< 4+5+2+4
< 4+5+2+6
< 4+5+2+8
< 4+5+4+2
< 4+5+4+4
< 4+5+4+6
< 4+5+4+8
< 4+5+6+2
< 4+5+6+4
< 4+5+6+6
< 4+5+6+8
< 4+5+8+2
< 4+5+8+4
< 4+5+8+6
< 4+5+8+8
< 4+7+2+2
< 4+7+2+4
< 4+7+2+6
< 4+7+2+8
< 4+7+4+2
< 4+7+4+4
< 4+7+4+6
< 4+7+4+8
< 4+7+6+2
< 4+7+6+4
< 4+7+6+6
< 4+7+6+8
< 4+7+8+2
< 4+7+8+4
< 4+7+8+6
< 4+7+8+8
---
> 2+1+2+6=11
> 2+1+4+4=11
> 2+1+6+2=11
> 2+3+2+4=11
> 2+3+4+2=11
> 2+5+2+2=11
> 4+1+2+4=11
> 4+1+4+2=11
> 4+3+2+2=11

Solutions by @VimgolfU:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @happylilmexican

114 active golfers, 401 entries

Solutions by @VimgolfU:
27
#30 - Vimgolf User / @VimgolfU

11/09/2023 at 01:14PM

28
#>72 - Vimgolf User / @VimgolfU

11/09/2023 at 01:13PM

29
#>85 - Vimgolf User / @VimgolfU

11/09/2023 at 01:11PM

30
#>93 - Vimgolf User / @VimgolfU

11/09/2023 at 01:06PM

77
#>105 - Vimgolf User / @VimgolfU

11/09/2023 at 12:59PM

110
#>113 - Vimgolf User / @VimgolfU

11/09/2023 at 12:03PM

110
#>113 - Vimgolf User / @VimgolfU

11/09/2023 at 12:43PM

113
#>114 - Vimgolf User / @VimgolfU

11/09/2023 at 12:01PM

114
#>114 - Vimgolf User / @VimgolfU

11/09/2023 at 12:01PM