summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:41:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:41:01 +0000
commit50693c367f8d3371e5c7eb85b0233fb56ae92a98 (patch)
treec693d63cf381d063796e5ef80160719eff05a213 /indent
parentInitial commit. (diff)
downloadvim-nftables-50693c367f8d3371e5c7eb85b0233fb56ae92a98.tar.xz
vim-nftables-50693c367f8d3371e5c7eb85b0233fb56ae92a98.zip
Adding upstream version 0.20200629.upstream/0.20200629upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'indent')
-rw-r--r--indent/nftables.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/indent/nftables.vim b/indent/nftables.vim
new file mode 100644
index 0000000..02e9c17
--- /dev/null
+++ b/indent/nftables.vim
@@ -0,0 +1,17 @@
+" Only load this indent file when no other was loaded.
+if exists('b:did_indent')
+ finish
+endif
+let b:did_indent = 1
+
+setlocal cindent
+setlocal cinoptions=L0,(0,Ws,J1,j1,+N
+setlocal cinkeys=0{,0},!^F,o,O,0[,0]
+" Don't think cinwords will actually do anything at all... never mind
+setlocal cinwords=table,chain
+
+" Some preliminary settings
+setlocal nolisp " Make sure lisp indenting doesn't supersede us
+setlocal autoindent " indentexpr isn't much help otherwise
+" Also do indentkeys, otherwise # gets shoved to column 0 :-/
+setlocal indentkeys=0{,0},!^F,o,O,0[,0]