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 5d6b72521c6d070006bded72

Extract wireshark capture filter

Extract wireshark capture filter from IP plan

Start file
oam_net               10.81.137.0/29    10.81.137.1-10.81.137.6      10.81.137.6    2300
traffic_net_1         10.81.137.16/28   10.81.137.17-10.81.137.30    10.81.137.30   2301
metallb_default_pool  21.21.0.0/24      21.21.0.1-21.21.0.254        21.21.0.254    -
director_ip           10.81.137.0/29    10.81.137.5-10.81.137.5      10.81.137.6    -
oam_net               10.81.137.8/29    10.81.137.9-10.81.137.14     10.81.137.14   2302
traffic_net_1         10.81.137.32/28   10.81.137.33-10.81.137.46    10.81.137.46   2303
istio_ip_1            10.81.139.1/32    10.81.139.1-10.81.139.1      -              -
End file
net 10.81.137.0/29 or net 10.81.137.16/28 or net 21.21.0.0/24 or net 10.81.137.0/29 or net 10.81.137.8/29 or net 10.81.137.32/28 or net 10.81.139.1/32

View Diff

1,7c1
< oam_net               10.81.137.0/29    10.81.137.1-10.81.137.6      10.81.137.6    2300
< traffic_net_1         10.81.137.16/28   10.81.137.17-10.81.137.30    10.81.137.30   2301
< metallb_default_pool  21.21.0.0/24      21.21.0.1-21.21.0.254        21.21.0.254    -
< director_ip           10.81.137.0/29    10.81.137.5-10.81.137.5      10.81.137.6    -
< oam_net               10.81.137.8/29    10.81.137.9-10.81.137.14     10.81.137.14   2302
< traffic_net_1         10.81.137.32/28   10.81.137.33-10.81.137.46    10.81.137.46   2303
< istio_ip_1            10.81.139.1/32    10.81.139.1-10.81.139.1      -              -
---
> net 10.81.137.0/29 or net 10.81.137.16/28 or net 21.21.0.0/24 or net 10.81.137.0/29 or net 10.81.137.8/29 or net 10.81.137.32/28 or net 10.81.139.1/32

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 34 remaining solutions by signing in and submitting your own entry
#35 Antwane Mason / @admason1413 - Score: 66 - 09/13/19 @ 19:52
:%s/[a-z1_]\++<BS>\s\+\([0-9.//]\+\)\p*/net \1<CR>:!<BS>1,$-1s/\n/ or /<CR>:x<CR>

0 comments


Created by: @rax0m

35 active golfers, 102 entries

Leaderboard (lowest score wins):
26
#1 - Norbert / @mullno

09/01/2019 at 02:23PM

26
#2 - Smylers / @Smylers2

09/01/2019 at 08:05PM

26
#3 - Ron Holt / @ron_holt

09/02/2019 at 12:08AM

26
#4 - tPenguinLTG / @tpenguinltg

09/02/2019 at 03:28AM

26
#5 - Saki Gw / @Sakigw

09/02/2019 at 01:00PM

26
#6 - Andrzej Wąsowski / @AndrzejWasowski

09/03/2019 at 12:34PM

26
#7 - sooqua / @sooqua

09/04/2019 at 12:04PM

26
#8 - John Braxler / @braxler

09/04/2019 at 09:04PM

26
#9 - Oskar Fridell / @rax0m

09/16/2019 at 09:41AM

26
#10 - Cassandra / @kascein

09/17/2019 at 08:56PM

26
#11 - Adam Hartz / @awareofnow

09/20/2019 at 12:40AM

27
#12 - Titouan Teyssier / @TitouanT_

09/01/2019 at 08:00AM

27
#13 - Ivo Blöchliger / @aigledesalpes

09/01/2019 at 05:04PM

27
#14 - John / @JohnJDoe2

09/02/2019 at 06:53AM

27
#15 - dpetrovic_vimgolf / @DpetrovicV

09/02/2019 at 11:43AM

27
#16 - blub / @agorilladriving

09/02/2019 at 01:00PM

27
#17 - Jonghyun Yun / @JonghyunYun

09/02/2019 at 02:50PM

27
#18 - Dax / @zacoxi

09/03/2019 at 01:41AM

27
#19 - Christopher / @Rephiscorth

09/03/2019 at 03:54PM

27
#20 - Baine Wedlock / @BaineWedlock

09/06/2019 at 09:10AM

28
#21 - Καράτε Μόνο / @karate_mono

09/02/2019 at 10:12AM

28
#22 - Алексей Кашуба / @Alex_Kashuba

09/02/2019 at 09:17PM

31
#23 - greengreen / @greengr09073862

09/01/2019 at 01:57PM

31
#24 - Andrew Blokzyl / @linuxKd

09/03/2019 at 07:28PM

31
#25 - theBecwar / @thebecwar

09/08/2019 at 06:49PM

32
#26 - Jonathan Eidsness / @jonathaneidsnes

09/03/2019 at 08:56PM

32
#27 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 02:01PM

33
#28 - Floyd Gantt / @fgantt

09/04/2019 at 04:55PM

34
#29 - Rohan Verma / @rhnvrm

09/05/2019 at 10:33PM

35
#30 - Alexander L. / @Lexol4s

09/10/2019 at 12:44AM