Tuesday, October 6, 2020

Re: Tabs and spaces in autoindent mode

Gary Johnson to Anton Shepelev:

> > In autoindent and noexpandtab mode, Vim will sometimes
> > repace a carefully chosen combination of tabs and spaces
> > with another, in which all the spaces are replaced with
> > tabs except a few trailing ones, corresponding to the
> > remainder of dividing the indent width by tab width.
> > [...]
>
> Try setting 'copyindent'. That should do what you want.
> See
>
> :help 'copyindent'

Thank you, Gabriele and Gary. That is exactly what I wanted.

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/20201006200419.5f4e4d0fcc7a190b25dff907%40gmail.com.

No comments: