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

72 active golfers, 216 entries

Leaderboard (lowest score wins):
27
#31 - blub / @agorilladriving

09/02/2019 at 01:00PM

27
#32 - Jonghyun Yun / @JonghyunYun

09/02/2019 at 02:50PM

27
#33 - Dax / @zacoxi

09/03/2019 at 01:41AM

27
#34 - Christopher / @Rephiscorth

09/03/2019 at 03:54PM

27
#35 - Baine Wedlock / @BaineWedlock

09/06/2019 at 09:10AM

27
#36 - Lory / @Lory46845742

11/07/2019 at 02:26PM

27
#37 - Jason Neylon / @jasonneylon

03/15/2020 at 11:22AM

27
#38 - hepebexè / @hepebexe

02/18/2021 at 07:22PM

27
#39 - 0xf00ff00f / @0xf00ff00f

12/18/2022 at 10:12AM

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

09/02/2019 at 10:12AM

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

09/02/2019 at 09:17PM

28
#42 - Michael Meixner / @meixner62

01/23/2020 at 06:24PM

28
#43 - quemeraisc / @quemeraisc

08/18/2022 at 03:03PM

28
#44 - James / @Dronak

12/09/2022 at 09:13PM

29
#45 - Roger Stoltz / @rogsto1

11/25/2019 at 11:44PM

29
#46 - e_e / @eleloi

02/14/2023 at 10:15PM

29
#47 - Brice Bischoff / @B-Bischoff

11/08/2024 at 02:45PM

30
#48 - Aioriya / @AioriyaDonk

09/23/2019 at 01:46AM

30
#49 - Alex / @AlexanderHeatl2

07/06/2022 at 09:58PM

31
#50 - greengreen / @greengr09073862

09/01/2019 at 01:57PM

31
#51 - Andrew Blokzyl / @linuxKd

09/03/2019 at 07:28PM

31
#52 - theBecwar / @thebecwar

09/08/2019 at 06:49PM

31
#53 - :wq / @write_quit_22

05/24/2021 at 06:39AM

31
#54 - Ilay Skutelsky / @ISkutelsky

08/04/2022 at 08:35PM

32
#55 - Jonathan Eidsness / @jonathaneidsnes

09/03/2019 at 08:56PM

32
#56 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 02:01PM

32
#57 - RockerZZY / @rocker_zzy

06/13/2020 at 03:25AM

33
#58 - Floyd Gantt / @fgantt

09/04/2019 at 04:55PM

34
#59 - Rohan Verma / @rhnvrm

09/05/2019 at 10:33PM

34
#60 - nickGPT / @nickandbro

08/24/2024 at 02:29PM