mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
runtime(vim): fix indentation after :registers +
closes: #18528 Signed-off-by: lacygoill <lacygoill@lacygoill.me> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ed93df4935
commit
08c39d2fe9
5
runtime/autoload/dist/vimindent.vim
vendored
5
runtime/autoload/dist/vimindent.vim
vendored
@@ -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}
|
||||
|
@@ -218,3 +218,8 @@ endif
|
||||
set path=.,,
|
||||
set clipboard=unnamed,unnamedplus
|
||||
" END_INDENT
|
||||
|
||||
" START_INDENT
|
||||
registers +
|
||||
echo 'text'
|
||||
" END_INDENT
|
||||
|
@@ -218,3 +218,8 @@ endif
|
||||
set path=.,,
|
||||
set clipboard=unnamed,unnamedplus
|
||||
" END_INDENT
|
||||
|
||||
" START_INDENT
|
||||
registers +
|
||||
echo 'text'
|
||||
" END_INDENT
|
||||
|
Reference in New Issue
Block a user