On 2025-06-29, K otgc wrote:
> Yes, my query is originally regarding Shift+>, which seemed to be the only way
> to indent a block of code.
> Tab and spacebar would work on individual lines, but not highlighted blocks.
> Ultimately, I need the block to indent 2 spaces to match previous code's
> indentation so the code and file functions.
> How to indent highlight code is the main question then, regardless if it's
> Spacebar, Tab or Shift+>.
> According to :h 30.5, spacebar is best practice, to avoid trouble with programs
> that use a different tabstop value.
> However having to manually spacebar multiple lines in my highlighted block is
> time consuming and manually messy.
I think you are confusing the space bar with the space character.
Indenting with space characters is recommended, but that does not
mean you have to hit the space bar repeatedly at the start of every
line. Vim can do most indentation for you automatically. Reading
":help 30.3" may help you with that.
Regards,
Gary
--
--
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/20250629130511.GE24703%40phoenix.
Sunday, June 29, 2025
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment