commit c3899419d429c2b2ae05fe90ef349c3a80931e17 parent d1fd674df3eb07049c780d6b7821e17d471fdc4c Author: Christian Clason <c.clason@uni-graz.at> Date: Mon, 9 Dec 2024 20:36:34 +0100 vim-patch:ad4764f: runtime(proto): include filetype plugin for protobuf closes: vim/vim#16199 https://github.com/vim/vim/commit/ad4764f65b678938c1b252245e1af1ae150fbce8 Co-authored-by: David Pedersen <limero@me.com> Diffstat:
| A | runtime/ftplugin/proto.vim | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/runtime/ftplugin/proto.vim b/runtime/ftplugin/proto.vim @@ -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