mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(proto): include filetype plugin for protobuf
closes: #16199 Signed-off-by: David Pedersen <limero@me.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ad3b6a3340
commit
ad4764f65b
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -247,6 +247,7 @@ runtime/ftplugin/pod.vim @petdance @dkearns
|
|||||||
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
runtime/ftplugin/poefilter.vim @ObserverOfTime
|
||||||
runtime/ftplugin/postscr.vim @mrdubya
|
runtime/ftplugin/postscr.vim @mrdubya
|
||||||
runtime/ftplugin/prisma.vim @ribru17
|
runtime/ftplugin/prisma.vim @ribru17
|
||||||
|
runtime/ftplugin/proto.vim @Limero
|
||||||
runtime/ftplugin/ps1.vim @heaths
|
runtime/ftplugin/ps1.vim @heaths
|
||||||
runtime/ftplugin/ps1xml.vim @heaths
|
runtime/ftplugin/ps1xml.vim @heaths
|
||||||
runtime/ftplugin/ptx.vim @jiangyinzuo
|
runtime/ftplugin/ptx.vim @jiangyinzuo
|
||||||
|
18
runtime/ftplugin/proto.vim
Normal file
18
runtime/ftplugin/proto.vim
Normal file
@ -0,0 +1,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
|
Reference in New Issue
Block a user