hello Steven, On Thu, Mar 27, 2025 at 02:52:18PM -0000, Steven H. wrote: > On Thu, 27 Mar 2025 09:53:42 +0100 Marc Chantreux wrote: > > I'll come back on it later. > I appreciate that and look forward to it.
As far as I know vim, I'm pretty sure that the unexpected line in the middle of the result of the substitution is related to something else. before investing it, can you test a very minimal alternative vimrc file like this: vim9script var ArgIndentRhs = () => submatch(1) .. "\r" .. submatch(2) .. repeat(' ', len(submatch(3))) .. submatch(4) command -nargs=0 ArgIndent { var s = @/ s!\v^((\s*)(\S+\s*).*%#)(.*)!\=ArgIndentRhs()! @/ = s } inoremap \\<cr> \<c-o>:ArgIndent<cr> set ai ci noet to do so: * save this content in, say, ~/stevendebugrc * open vim with -u ~/stevendebugrc regards -- Marc Chantreux -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z-fg4lEX6oiL4aRL%40prometheus.