Re: Indent block inline with other blocks is too far

Christian Brabandt <[email protected]> Sun, 29 Jun 2025 07:47:23 +0200
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
Hi,

There is extensive documentation and guidance around how to use tabs in the user manual at

:h 30.5

Thanks

Chris

Am 28.06.2025 um 09:20 schrieb K otgc <[email protected]>:

Just entering :set sw=2 in .vimrc leaves tabbing at 8 spaces.
The post 27 Jun 2025, 15:25:24 with 3 lines of code, is the only code that works to affect tabbing at 2 spaces.

On Friday, 27 June 2025 at 18:30:52 UTC+2 Gary Johnson wrote:

On 2025-06-27, K otgc wrote:

> Hello,

> I'm indenting a code block by highlighting the block and then selecting the

> greater than key.

> However this indents the block 8 spaces, which is too far past the other code

> blocks, which are only 2 spaces indented.

> I am using version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 02 2025

> 16:39:51)

> Is there a way to adust the indent please?

Yes. As someone else wrote, see

help >

help 'sw'

and just execute, or put in your vimrc,

:set sw=2

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 [email protected] .

To view this discussion visit https://groups.google.com/d/msgid/vim_use/71db5174-cd0d-43fe-812f-918f719733f7n%40googlegroups.com .

--

--

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/C003C769-94FD-4FC1-AC00-6276AC9D9C03%40256bit.org .