Hi Gary,

I found in ':help cinoptions-values', 'gN' is what I want to set scope
declaration indent. So I'm writing 'set cino=g0' in .vimrc file to resolve
my problem.

Thanks a lot,
Neville

On Sat, May 15, 2010 at 01:36, Gary Johnson <[email protected]> wrote:

> On 2010-05-15, Neville News wrote:
> > Hello guys,
> >
> > When I editing a C++ file, I get 'public', 'private' keyword auto indent,
> like
> > this:
> > class B
> > {
> >         public:
> >                 xxxxxx
> > };
> >
> > How can I custom this behavior to make those keywords not auto indent?
>
> The answer depends on whether you want no auto-indentation at all or
> just different auto-indentation.  These sections of the user manual
> should help you to solve the problem or to clarify your question.
>
>    :help 30.2
>    :help 30.3
>    :help 30.4
>
> A more direct but less instructive answer may be found here:
>
>    :help cinoptions
>    :help cinoptions-values
>
> 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
>

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