Comments and indenting

Nikolai Weibull now at
Thu Aug 30 02:55:44 EDT 2007

On 8/30/07, Gavin Sinclair <gsinclair at> wrote:
> [Forwarded message from Brian Doyle.  Just wondering if anyone has a solution.]
> I'm new to vim and ruby so I'm not actually sure where the problem.
> First off thanks for writing the ruby.vim code!  I've been using it
> quite a bit and it's been great.  I do have one issue that doesn't
> seem to be quite right.  When I start a comment above a method the #
> always moves over all the way to the right.
> class Blah
>    # <start comments>
>    def do_something
>    end
> end
> Immediately after entering the # it moves to:

[the beginning of the line]

:h 'indentkeys'

You seem to have messed up your setup.  Make sure your 'indentkeys'
setting is set to


> Not sure if this is a problem with ruby.vim or what exactly.  i
> noticed that this only happens after doing a C-O or C-o and then type
> the #.   Thanks for your help.



More information about the vim-ruby-devel mailing list