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 116 remaining solutions by signing in and submitting your own entry
#117 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

117 active golfers, 408 entries

Leaderboard (lowest score wins):
30
#91 - ่›™็ˆน / @Joe53572723

02/10/2023 at 03:52PM

30
#92 - โšซ hgtp://Shifor ๐Ÿ› ๏ธ / @shifor_gnome

03/03/2023 at 02:09AM

30
#93 - b1gz / @_b1gz

03/03/2023 at 06:04AM

30
#94 - foobarbazqux12345 / @foobarbazqux121

03/04/2023 at 06:49PM

30
#95 - ใ‚ในใน / @abebe123000

07/08/2023 at 06:49AM

30
#96 - Pretend it's Beef / @EthanMcQuarrie

09/01/2023 at 04:36AM

31
#97 - hu3 hu3 / @hu3hu318

03/04/2023 at 05:08PM

31
#98 - Sergio / @SergioVl12

03/20/2023 at 05:30AM

31
#99 - Gino Fazari / @GinoF

05/15/2023 at 06:33PM

31
#100 - yann / @ylsarto

05/15/2023 at 08:22PM

31
#101 - Niktoshka / @___krot

05/16/2023 at 04:16AM

32
#102 - cotarmanach / @cotarmanach

05/26/2024 at 07:14PM

34
#103 - marcelborbus / @marcelborbus

03/03/2024 at 04:03PM

34
#104 - pagedMov / @pagedMov

05/01/2024 at 06:16AM

35
#105 - steve / @steve35773420

02/06/2023 at 07:52PM

38
#106 - ๐Ÿ‘Œ / @whymonsieur

03/16/2023 at 06:24AM

38
#107 - Ivan Ivankovic / @ivankoi

03/20/2023 at 07:29PM

40
#108 - Al-Baraa El-Hag / @drskoolie

01/24/2023 at 01:18PM

82
#109 - Peter Szerzo / @peterszerzo

07/03/2023 at 01:15PM

83
#110 - David / @imdavidhwang

08/07/2023 at 03:47PM

86
#111 - Chillbro / @Chillbrosaurus

02/27/2023 at 09:03PM

86
#112 - Vivek Veer / @tempaccount4269

06/23/2023 at 07:12AM

90
#113 - THATCHILD / @THATCHILD21

03/20/2023 at 06:27AM

93
#114 - quan ngo trong / @quanngotrong1

03/01/2023 at 03:49PM

104
#115 - vimmac / @vimmac13823

06/15/2023 at 10:20AM

106
#116 - Rodney Visser / @_Radnus

03/28/2024 at 03:20AM

111
#117 - BLOO / @BLOOpota

03/03/2023 at 01:38PM