From e585c9e78f5ec3de8b54a9b7c27b58c9dd723222 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 14 Oct 2018 09:35:38 +0200 Subject: [PATCH] FEATURE: Add indentation configuration Uses C Like indentation with adjusted configuration. Respects multi line values and curly braces. Does not indent within conditions so far. --- indent/typoscript.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 indent/typoscript.vim diff --git a/indent/typoscript.vim b/indent/typoscript.vim new file mode 100644 index 0000000..573a680 --- /dev/null +++ b/indent/typoscript.vim @@ -0,0 +1,21 @@ +" Vim indent file +" Language: typoscript +" Maintainer: Daniel Siepmann +" Last Change: 2018 Oct 14 + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +" We can use C like indentations with modified options +setlocal cindent +setlocal cinwords= +setlocal cinoptions= +" Do not indent after assignment +setlocal cinoptions+=+0 +" Indent multi line value, but not closing brace +setlocal cinoptions+=(s,m1 + +" let b:undo_indent = "setl cin<"