Hi Christian,

On Friday, 24 February 2017 14:24:13 UTC, Christian Brabandt  wrote:
> That means, we cannot make Vim work like you prefer and have all indents 
> reapplied as the text is changed per block line.

That's a pitty, as it would be the best approach.
On the other hand, I don't know if it wouldn't make sense to disable indent
and wrap altogether when appending in a visual block. It appears that only
"strange" things happen when any of those features is activated.
 
> However here is a first play patch, that at least makes Vim aware that 
> indenting could have taken place and tries to adjust to it. Please check 
> it out. It seems to work for my test cases so far.
> 
> If it works okay, I'll add some test cases.

The end result is much better now. But I did some extra testing and noticed
that if the two lines start indented by 2*&sw (which means the first line will 
be de-indented), then the second line will not have the ; appended.

Other than that, at least from my point of view, the new behavior is more
acceptable than the original.

Thanks for your help!
Vitor

-- 
-- 
You received this message from the "vim_dev" 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 because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui