David Pedersen | 39eff4c | 2024-08-07 21:23:59 +0200 | [diff] [blame] | 1 | " Vim indent file |
2 | " Language: Protobuf | ||||
3 | " Maintainer: David Pedersen <limero@me.com> | ||||
4 | " Last Change: 2024 Aug 07 | ||||
5 | |||||
6 | " Only load this indent file when no other was loaded. | ||||
7 | if exists("b:did_indent") | ||||
8 | finish | ||||
9 | endif | ||||
10 | let b:did_indent = 1 | ||||
11 | |||||
12 | " Protobuf is like indenting C | ||||
13 | setlocal cindent | ||||
14 | setlocal expandtab | ||||
15 | setlocal shiftwidth=2 | ||||
16 | |||||
17 | let b:undo_indent = "setlocal cindent< expandtab< shiftwidth<" | ||||
18 | |||||
19 | " vim: sw=2 sts=2 et |