On 2011-06-01, A117 wrote:In my files, some lines are indented with Tab's, while others usesspaces.If I set cindent or smartindent, new lines after one set of theselines cannot be auto-indented correctly.So I have to set autoindent and add or remove indents manually whennecessary.Cannot VIM auto discern previous line's indent style to auto indent anew line?
See if either of these do what you need.
:help copyindent
:help preserveindent
Regards,
Gary
You might also wanna look at
:help 'tabstop'
:help 'shiftwidth'
:help 'expandtab'
Cheers,
Daniel
------------------------------------------------------------
Daniel CorrĂȘa
+55 (45) 9938.3993
No comments:
Post a Comment