summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-08 21:11:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-08 21:11:13 +0000
commit57afc966de5e7ca2d33333bed54de17e2c5350b5 (patch)
treec693d63cf381d063796e5ef80160719eff05a213 /ftplugin
parentInitial commit. (diff)
downloadvim-nftables-57afc966de5e7ca2d33333bed54de17e2c5350b5.tar.xz
vim-nftables-57afc966de5e7ca2d33333bed54de17e2c5350b5.zip
Adding upstream version 0.20200629.upstream/0.20200629upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/nftables.vim24
1 files changed, 24 insertions, 0 deletions
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