> 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 might also wanna look at

        :help 'tabstop'
        :help 'shiftwidth'
        :help 'expandtab'

Cheers,
        Daniel

------------------------------------------------------------
Daniel Corrêa
+55 (45) 9938.3993
http://about.me/dnlcorrea

-- 
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

Reply via email to