aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/proto.vim
blob: 585f4461d3334f8bc40f90b708e629c1398760c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Vim filetype plugin
" Language:	Protobuf
" Maintainer:	David Pedersen <limero@me.com>
" Last Change:	2024 Dec 09

if exists('b:did_ftplugin')
  finish
endif
let b:did_ftplugin = 1

setlocal formatoptions-=t formatoptions+=croql

setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s

let b:undo_ftplugin = "setlocal formatoptions< comments< commentstring<"

" vim: sw=2 sts=2 et