From c3899419d429c2b2ae05fe90ef349c3a80931e17 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 9 Dec 2024 20:36:34 +0100 Subject: [PATCH] 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 --- runtime/ftplugin/proto.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 runtime/ftplugin/proto.vim diff --git a/runtime/ftplugin/proto.vim b/runtime/ftplugin/proto.vim new file mode 100644 index 0000000000..585f4461d3 --- /dev/null +++ b/runtime/ftplugin/proto.vim @@ -0,0 +1,18 @@ +" Vim filetype plugin +" Language: Protobuf +" Maintainer: David Pedersen +" 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