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

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

113 active golfers, 398 entries

Solutions by @talineo:
27
#34 - Frédéric Heulin / @talineo

12/01/2023 at 08:59AM

28
#>72 - Frédéric Heulin / @talineo

12/01/2023 at 08:55AM

29
#>85 - Frédéric Heulin / @talineo

12/01/2023 at 08:47AM

69
#>104 - Frédéric Heulin / @talineo

12/01/2023 at 08:30AM

72
#>104 - Frédéric Heulin / @talineo

12/01/2023 at 08:29AM

119
#>113 - Frédéric Heulin / @talineo

11/29/2023 at 05:22PM