runtime(vim): fix indentation after `:registers +`
Commit:
https://github.com/vim/vim/commit/08c39d2fe95b807d2174fb9f22c89ad965d7962d
Author: lacygoill <
lacy...@lacygoill.me>
Date: Thu Oct 9 19:37:45 2025 +0000
runtime(vim): fix indentation after `:registers +`
closes:
https://github.com/vim/vim/issues/18528
Signed-off-by: lacygoill <
lacy...@lacygoill.me>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/autoload/dist/vimindent.vim b/runtime/autoload/dist/vimindent.vim
index 79a69e3b5..ec1482355 100644
--- a/runtime/autoload/dist/vimindent.vim
+++ b/runtime/autoload/dist/vimindent.vim
@@ -2,7 +2,7 @@ vim9script
# Language: Vim script
# Maintainer: github user lacygoill
-# Last Change: 2025 Sep 11
+# Last Change: 2025 Oct 09
#
# Includes changes from The Vim Project:
@@ -341,7 +341,8 @@ const PLUS_MINUS_COMMAND: string = '^\s*[+-]\s*$'
patterns =<< trim eval END
{'\'}<argd\%[elete]\s\+\*\s*$
\<[lt]\=cd!\=\s\+-\s*$
- \<norm\%[al]!\=\s*\S\+$
+ \<norm\%[al]!\=\s\+.*$
+ \<reg\%[isters]\%(\s\+\S\+\)\+$
\%(\<sil\%[ent]!\=\s\+\)\=\<[nvxsoilct]\=\%(nore\|un\)\=map!\=\s
\<set\%(\%[global]\|\%[local]\)\>.*,$
{PLUS_MINUS_COMMAND}
diff --git a/runtime/indent/testdir/
vim.in b/runtime/indent/testdir/
vim.in
index 0cccbbbb9..228bc79bf 100644
--- a/runtime/indent/testdir/
vim.in
+++ b/runtime/indent/testdir/
vim.in
@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
+
+" START_INDENT
+registers +
+echo 'text'
+" END_INDENT
diff --git a/runtime/indent/testdir/vim.ok b/runtime/indent/testdir/vim.ok
index 7d490ad32..595cc279b 100644
--- a/runtime/indent/testdir/vim.ok
+++ b/runtime/indent/testdir/vim.ok
@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
+
+" START_INDENT
+registers +
+echo 'text'
+" END_INDENT