summaryrefslogtreecommitdiffstats
path: root/runtime/indent/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/c.vim')
-rw-r--r--runtime/indent/c.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/indent/c.vim b/runtime/indent/c.vim
new file mode 100644
index 0000000..e224382
--- /dev/null
+++ b/runtime/indent/c.vim
@@ -0,0 +1,15 @@
+" Vim indent file
+" Language: C
+" Maintainer: Bram Moolenaar <Bram@vim.org>
+" Last Change: 2005 Mar 27
+
+" 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<"