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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 96 remaining solutions by signing in and submitting your own entry
#97 BLOO / @BLOOpota - Score: 111 - 03/03/23 @ 13:38
cG2+1+2+6=11<CR>2+1+4+4=11<CR>2+1+6+2=11<CR>2+3+2+4=11<CR>2+3+4+2=11<CR>2+5+2+2=11<CR>4+1+2+4=11<CR>4+1+4+2=11<CR>4+3+2+2=11<C-C><C-C>l:q!<BS><BS>wq<CR>

0 comments


Created by: @happylilmexican

97 active golfers, 316 entries

Leaderboard (lowest score wins):
83
#91 - David / @imdavidhwang

08/07/2023 at 03:47PM

86
#92 - Chillbro / @Chillbrosaurus

02/27/2023 at 09:03PM

86
#93 - Vivek Veer / @tempaccount4269

06/23/2023 at 07:12AM

90
#94 - THATCHILD / @THATCHILD21

03/20/2023 at 06:27AM

93
#95 - quan ngo trong / @quanngotrong1

03/01/2023 at 03:49PM

104
#96 - vimmac / @vimmac13823

06/15/2023 at 10:20AM

111
#97 - BLOO / @BLOOpota

03/03/2023 at 01:38PM