summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-09 21:00:49 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-09 21:00:49 +0200
commit26095dda91c169bf5e7f657d4ff52da1baab3e4c (patch)
treeba99d44bd4871bc9bff63bd3c0740becd7b585f1 /ftplugin
parentdec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef (diff)
downloadvim-polyglot-26095dda91c169bf5e7f657d4ff52da1baab3e4c.tar.gz
vim-polyglot-26095dda91c169bf5e7f657d4ff52da1baab3e4c.zip
Update
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/nftables.vim28
1 files changed, 28 insertions, 0 deletions
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('<sfile>: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