> As you see, pressing Enter makes the backslash disappear. Also, as soon
> as Enter is pressed, all 'this' and '--example' strings appear on a
> different background (light gray in my case with 'colorscheme desert'
> which I use).
>
> Please advise how to fix it.
go from inoremap \<cr> <c-o>:ArgIndent<cr>
to inoremap \<cr> \<c-o>:ArgIndent<cr>
I also made some changes to leave/restore original values of @" and @/.
the final version is:
command -nargs=0 ArgIndent {
y y | put y
var s = @/
s!\v^\s*\zs(\S+\s+).*!\=repeat(' ', 1 + len(submatch(1)))!
@/ = s
}
inoremap \<cr> \<c-o>:ArgIndent<cr>
> Thanks.
I thank you too: I never went to this level of detail and just used only
spaces. If it's ok for shell scripting, it can be anoying in C for
example so you came with the request but we both come with a solution
I'll reuse.
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z92g2pO2F2ZoG44l%40prometheus.
Friday, March 21, 2025
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment