Friday, March 21, 2025

Re: BASH script: Indent with tabs, align with spaces

On Fri, Mar 21, 2025 at 07:24:29PM -0000, Steven H. wrote:
> Here is the result with the latest changes you proposed:

> #!/bin/bash⏎
> ⏎
> this␣--something␣\⏎
> >·······-anotherthing␣\⏎
> >·······␣␣␣␣␣␣␣␣␣␣␣␣␣␣-third␣\▪⏎
> >·······␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣-andsoon

yes! that's because it fully complies the pseudocode we
agreed on and that's why I suggested the \\<cr> map in the
first place: if you come back to the

inoremap \\<cr>

you can type 2 \ to say "that's the beginin of an indent.so to have

this --is \
--a \
--good \
--example

you type

this --is \\
--a \
--good \
--example

this is one extra caracter. don't you think that's fair enough?

regards

Marc

--
--
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/Z93UPreMw1RO1iS1%40prometheus.

No comments: