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

"Steven H." <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <20250322162359.07b1223e@localhost>
Marc,

If checking for trailing backslash is difficult, here is a simpler idea:

go to new line
preserve the indentation and alignment of the previous line
if (there is a second word in the previous line)
	add spaces to align to the second word in the previous line
fi
# word: anything that is not white space

Map all that to Ctrl+Enter (or Shift+Enter).

Is that possible?

-- 
-- 
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 [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/20250322162359.07b1223e%40localhost.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.