From 8079264b297814b738fb48c78745727198eef97a Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 2 Jun 2024 11:59:05 +0200 Subject: [PATCH] Add a modeline for nftables (via plugin) To use this syntax you need a 3rd party plugin. I use https://github.com/nfnty/vim-nftables, but others might work, too. --- nft.rules | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nft.rules diff --git a/nft.rules b/nft.rules new file mode 100644 index 0000000..a998d0b --- /dev/null +++ b/nft.rules @@ -0,0 +1,7 @@ +#!/usr/bin/nft -f + +# THIS SYNTAX HIGHLIGHT NEEDS A PLUGIN, E.G.: +# https://github.com/nfnty/vim-nftables + +# vim:syntax=nftables:fileencoding=utf-8:ts=4:expandtab:linebreak:wrap +# vim: set syntax=nftables fileencoding=utf-8 ts=4 expandtab linebreak wrap :