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

56 active golfers, 171 entries

Leaderboard (lowest score wins):
27
#31 - Lory / @Lory46845742

11/07/2019 at 02:26PM

27
#32 - Jason Neylon / @jasonneylon

03/15/2020 at 11:22AM

27
#33 - hepebexè / @hepebexe

02/18/2021 at 07:22PM

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

09/02/2019 at 10:12AM

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

09/02/2019 at 09:17PM

28
#36 - Michael Meixner / @meixner62

01/23/2020 at 06:24PM

29
#37 - Roger Stoltz / @rogsto1

11/25/2019 at 11:44PM

30
#38 - José / @AngelGaldamez

09/23/2019 at 01:46AM

31
#39 - greengreen / @greengr09073862

09/01/2019 at 01:57PM

31
#40 - Andrew Blokzyl / @linuxKd

09/03/2019 at 07:28PM

31
#41 - theBecwar / @thebecwar

09/08/2019 at 06:49PM

31
#42 - :wq / @write_quit_22

05/24/2021 at 06:39AM

32
#43 - Jonathan Eidsness / @jonathaneidsnes

09/03/2019 at 08:56PM

32
#44 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 02:01PM

32
#45 - RockerZZY / @rocker_zzy

06/13/2020 at 03:25AM

33
#46 - Floyd Gantt / @fgantt

09/04/2019 at 04:55PM

34
#47 - Rohan Verma / @rhnvrm

09/05/2019 at 10:33PM

35
#48 - Alexander L. / @Lexol4s

09/10/2019 at 12:44AM

35
#49 - Miko / @_m_ik_o_

09/26/2019 at 04:09PM

39
#50 - Mark Brody / @_markbrody

11/06/2019 at 09:29PM

43
#51 - Adam Bumpus / @bumpus_adam

09/03/2019 at 05:38PM

44
#52 - Hans Lidiki / @HLidiki

09/07/2019 at 05:11PM

44
#53 - Yabūchi Takeshi / @WhiteKyoto

09/10/2019 at 09:09AM

52
#54 - averageRandomPerson / @averageRandomP1

09/14/2019 at 04:17AM

58
#55 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 09:19PM

66
#56 - Antwane Mason / @admason1413

09/13/2019 at 07:52PM