aniero/vim-copy-as-rtf — pull request #1 by zef (2012-07-14 16:59:36+00:00)
Title: Remove common leading whitespace?

Hi Nathan!

What do you think about removing common indentation up to the least-indented level? This prevents you from having to to manually remove the common leading whitespace when you copy a block of code that is all indented.

I would think that this is always desirable, but I could add this as a configurable option instead of having it be the default and only behavior if you would prefer. And if you don't want it at all that's fine too of course.

The downside to this implementation is that the text flashes at the outdented level before getting restored to its previous state. I didn't think of a way to avoid that but I don't see it as i big deal for the purposes of this plugin.

Thanks! Let me know what you think...