tommcdo / vim-exchange

Easy text exchange operator for Vim
MIT License
756 stars 23 forks source link

Support :set selection=exclusive #27

Closed inkarkat closed 10 years ago

inkarkat commented 10 years ago

With this, the '> mark points to after the end of the selection.

tommcdo commented 10 years ago

I'll have to think about this one a bit more. I like the use of gv, but I'm not totally sold on leaving 'selection' as is.

inkarkat commented 10 years ago

Thanks for merging my other patches so quickly!

I don't understand your concerns; for a 'selection' value of inclusive, nothing changes, and for exclusive, the former behavior is wrong (it swaps one additional character). I do the same in my plugins, e.g. here.

tommcdo commented 10 years ago

Ah, I hadn't noticed that you kept it around for Normal mode. That puts my mind at ease.

Thanks!