garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.

Home Page:www.vim.org/scripts/script.php?script_id=2540

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{VISUAL} doesn't keep the indentation

janko opened this issue · 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! ❤️