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

Anton Shepelev <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
Steven H. to Anton Shepelev:

> > No, you do not need any plugins for that.  I have been
> > indenting with tabs and alighning with spaces for years,
> > with just copyindent:
>
> How exactly do you do this?  Could you please share your
> setup (relevant .vimrc lines)?

Beg pardon for the misinformation, folks.  I had not used
Vim to program in tabs+spaces mode in a long time, and now I
see that I cannot make it respect my indentation and
alignment with any standard settings.

The correct action for indent/unindent should affect the
initial tab on the line, leaving intact whatever spaces may
occur furher to the right. Vim's < and > do not seem able to
do that by default.  I don't understand why `preserveindent'
adds tabs /after/ my spaces, and wish Vim would support this
simply and natural indentation mechanism without custom
scripting.

-- 
-- 
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/20250322011022.ce7651e53e41041762ffa86c%40gmail.com.
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.