summaryrefslogtreecommitdiffstats
path: root/indent/proto.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/proto.vim')
-rw-r--r--indent/proto.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/indent/proto.vim b/indent/proto.vim
new file mode 100644
index 00000000..bf558e76
--- /dev/null
+++ b/indent/proto.vim
@@ -0,0 +1,21 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1
+
+" Vim indent file
+" Language: Protobuf
+" Maintainer: Johannes Zellner <johannes@zellner.org>
+" Last Change: Fri, 15 Mar 2002 07:53:54 CET
+
+" Only load this indent file when no other was loaded.
+if exists("b:did_indent")
+ finish
+endif
+let b:did_indent = 1
+
+" Protobuf is like indenting C
+setlocal cindent
+setlocal expandtab
+setlocal shiftwidth=2
+
+let b:undo_indent = "setl cin<"
+
+endif