summaryrefslogtreecommitdiffstats
path: root/indent/proto.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-06-26 18:03:28 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-06-26 18:03:28 +0200
commitc69562f864cb0ee973142a45091f6cb46ce0b1df (patch)
treef10ac7812b56cfa944367bae62f8cea0ffd54414 /indent/proto.vim
parent40c54bc12b5700f6bffed12209489e1f669f6423 (diff)
downloadvim-polyglot-2.9.3.tar.gz
vim-polyglot-2.9.3.zip
Updatev2.9.3
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