From 26095dda91c169bf5e7f657d4ff52da1baab3e4c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 9 Jun 2021 21:00:49 +0200 Subject: Update --- ftplugin/nftables.vim | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..c9294881 --- /dev/null +++ b/ftplugin/nftables.vim @@ -0,0 +1,28 @@ +if polyglot#init#is_disabled(expand(':p'), 'nftables', 'ftplugin/nftables.vim') + finish +endif + +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