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):
34
#61 - Alex Elarbee / @elarbee

10/16/2024 at 01:27AM

35
#62 - Alexander L. / @Lexol4s

09/10/2019 at 12:44AM

35
#63 - Miko / @_m_ik_o_

09/26/2019 at 04:09PM

39
#64 - Mark Brody / @_markbrody

11/06/2019 at 09:29PM

42
#65 - Frédéric Heulin / @talineo

12/01/2023 at 05:32PM

43
#66 - Adam Bumpus / @bumpus_adam

09/03/2019 at 05:38PM

44
#67 - Hans Lidiki / @HLidiki

09/07/2019 at 05:11PM

44
#68 - Yabūchi Takeshi / @WhiteKyoto

09/10/2019 at 09:09AM

49
#69 - Никита Семёнов / @NiKoS1707

09/24/2022 at 06:37PM

52
#70 - averageRandomPerson / @averageRandomP1

09/14/2019 at 04:17AM

58
#71 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 09:19PM

66
#72 - Antwane Mason / @admason1413

09/13/2019 at 07:52PM