garbas/vim-snipmate

{VISUAL} doesn't keep the indentation

janko opened this issue · 2 comments

I have the following snippet:

snippet b block
    ${1}
        {VISUAL}
    end

And I have the following Ruby code

class Foo
end

and I visually select those 2 lines, press <Tab>b<Tab>, then I expect to end up with this:

*cursor*
  class Foo
  end
end

But I end up with this:

*cursor*
  class Foo
end
end

Just pushed a fix. Thanks for the report!

Thanks! ❤️