From c67248988b8685a894128cfcd8c3629cc7ff1886 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 20 Feb 2026 09:17:54 +0800 Subject: [PATCH] vim-patch:342ae5f: runtime(progress): Use setlocal for expandtab The Progress syntax file gained `set expandtab` in 4c3f536f4 (updated for version 7.0d01, 2006-04-11). The Progress language itself doesn't distinguish between tabs and spaces for indentation, so this seems like something that should be left to user preference; but the setting is accompanied by the comment "The Progress editor doesn't cope with tabs very well", so there may be reason to keep it. However, using `set` means that any new buffers created after editing a Progress file will also have `expandtab` turned on, which is likely contrary to a user's expectations. We should use `setlocal` instead to avoid this. closes: vim/vim#19458 https://github.com/vim/vim/commit/342ae5f8aa612179f9390c21a8129a393a995b1a Co-authored-by: Daniel Smith --- runtime/syntax/progress.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/syntax/progress.vim b/runtime/syntax/progress.vim index 4b8f61287ce..deb8199b324 100644 --- a/runtime/syntax/progress.vim +++ b/runtime/syntax/progress.vim @@ -9,7 +9,7 @@ " Chris Ruprecht " Mikhail Kuperblum " John Florian -" Last Change: Jul 23 2024 +" Last Change: Feb 18 2026 " quit when a syntax file was already loaded if exists("b:current_syntax") @@ -22,7 +22,7 @@ set cpo&vim setlocal iskeyword=@,48-57,_,-,!,#,$,% " The Progress editor doesn't cope with tabs very well. -set expandtab +setlocal expandtab syn case ignore