On Jan 9, 5:40 pm, statquant2 <[email protected]> wrote:
> Just to give an example :
>
> myfunction:{[a;b]
> |----|a : select from a where c > 1; /here either I put myself a tab or even
> better vim do it itself (but this is level 2)
> |----|b : select from b where c > 2;  /here I don't do anything vim just
> copy over the indentation
> |----|d : select from b where c > 0;  /here again} /here I take out myself 
> the indentation or vim do it itself because of }
>

Is 'smartindent' set? How about 'cindent'? When do you get this
indentation? When typing or when using the '=' operator?

If all you want to do is maintain a previous line's indent, and do
indentation manually, you ought to be able to accomplish this by
turning off cindent and smartindent, making indentexpr empty, and
setting 'autoindent'. Don't use the '=' operator in this case, it
always indents using the C-indenting rules as mentioned in :help =.

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