Package: vim Version: 2:8.2.0368-1 Severity: normal Tags: patch upstream Dear Maintainer,
syntax/tap.vim uses «:set foo» to set window-local options. That changes the default setting of those options for new buffers. Here is a patch to fix that: [[[ diff --git a/runtime/syntax/tap.vim b/runtime/syntax/tap.vim index db37bb8..b2f00ad 100644 --- a/runtime/syntax/tap.vim +++ b/runtime/syntax/tap.vim @@ -51,17 +51,17 @@ syn region tapTestResultsSummaryNotOK start=/TODO passed:/ end=/$/ contained syn region tapTestInstructionsRegion start=/\%1l/ end=/^$/ -set foldtext=TAPTestLine_foldtext() +setl foldtext=TAPTestLine_foldtext() function! TAPTestLine_foldtext() let line = getline(v:foldstart) let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g') return sub endfunction -set foldminlines=5 -set foldcolumn=2 -set foldenable -set foldmethod=syntax +setl foldminlines=5 +setl foldcolumn=2 +setl foldenable +setl foldmethod=syntax syn sync fromstart if !exists("did_tapverboseoutput_syntax_inits") ]]] Cheers, Daniel