summaryrefslogtreecommitdiff
path: root/mnv/runtime/indent/cpp.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/indent/cpp.mnv')
-rw-r--r--mnv/runtime/indent/cpp.mnv16
1 files changed, 16 insertions, 0 deletions
diff --git a/mnv/runtime/indent/cpp.mnv b/mnv/runtime/indent/cpp.mnv
new file mode 100644
index 0000000000..d8b4b3eb91
--- /dev/null
+++ b/mnv/runtime/indent/cpp.mnv
@@ -0,0 +1,16 @@
+" MNV indent file
+" Language: C++
+" Maintainer: The MNV Project <https://github.com/Project-Tick/Project-Tick>
+" Last Change: 2023 Aug 10
+" Former Maintainer: Bram Moolenaar <Bram@mnv.org>
+
+" Only load this indent file when no other was loaded.
+if exists("b:did_indent")
+ finish
+endif
+let b:did_indent = 1
+
+" C++ indenting is built-in, thus this is very simple
+setlocal cindent
+
+let b:undo_indent = "setl cin<"