From 50693c367f8d3371e5c7eb85b0233fb56ae92a98 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 10:41:01 +0200 Subject: Adding upstream version 0.20200629. Signed-off-by: Daniel Baumann --- ftplugin/nftables.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ftplugin/nftables.vim (limited to 'ftplugin') diff --git a/ftplugin/nftables.vim b/ftplugin/nftables.vim new file mode 100644 index 0000000..f330cb8 --- /dev/null +++ b/ftplugin/nftables.vim @@ -0,0 +1,24 @@ +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +let s:save_cpo = &cpoptions +set cpoptions&vim + +setlocal smartindent nocindent +setlocal commentstring=#%s +setlocal formatoptions-=t formatoptions+=croqnlj + +setlocal comments=b:# + +setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab +setlocal textwidth=99 + +let b:undo_ftplugin = ' + \ setlocal formatoptions< comments< commentstring< + \|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth< + \' + +let &cpoptions = s:save_cpo +unlet s:save_cpo -- cgit v1.2.3