From: Stanislaw Gruszka Date: Tue, 23 Dec 2025 20:15:14 +0000 (+0000) Subject: runtime(ftplugin): set different formatoptions for bpftrace X-Git-Tag: v9.1.2012~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e577c7aa8be05281da54e9377fc0ac4b7280a2b;p=thirdparty%2Fvim.git runtime(ftplugin): set different formatoptions for bpftrace Problem: Comment formatting does not work by default for bpftrace. Solution: Change default 'formatoptions' similarly as C and many other languages. closes: #18996 Signed-off-by: Stanislaw Gruszka Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/bpftrace.vim b/runtime/ftplugin/bpftrace.vim index b9ad1d13c1..73772b103d 100644 --- a/runtime/ftplugin/bpftrace.vim +++ b/runtime/ftplugin/bpftrace.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: bpftrace " Maintainer: Stanislaw Gruszka -" Last Change: 2025 Dec 05 +" Last Change: 2025 Dec 23 if exists('b:did_ftplugin') finish @@ -11,4 +11,6 @@ let b:did_ftplugin = 1 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// setlocal commentstring=//\ %s -let b:undo_ftplugin = "setlocal comments< commentstring<" +setlocal formatoptions-=t formatoptions+=croql + +let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<"