Thursday, June 2, 2011

Re: how to auto-indent both Tab and Space indented lines?

On 2011-06-01, A117 wrote:
> In my files, some lines are indented with Tab's, while others uses
> spaces.
> If I set cindent or smartindent, new lines after one set of these
> lines cannot be auto-indented correctly.
> So I have to set autoindent and add or remove indents manually when
> necessary.
> Cannot VIM auto discern previous line's indent style to auto indent a
> new line?

See if either of these do what you need.

:help copyindent
:help preserveindent

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

No comments: