vim-unimpaired icon indicating copy to clipboard operation
vim-unimpaired copied to clipboard

virtualedit's 'all' doesn't combine with 'block'

Open mkoskar opened this issue 8 years ago • 3 comments

I have set virtualedit=block and [ov ]ov cov mappings doesn't do anything.

I would expect to all take effect and I suppose that was the idea behind current implementation that appends all to whatever the value of virtualedit is. Judging from :help virtualedit and some testing if all is to work it has to be a single value.

mkoskar avatar May 17 '17 08:05 mkoskar

Hi. I also experienced this. 'all' only works alone: :se ve=all. The logic should be changed like so: first record the value of &ve in a global variable then when toggling set to all or the recorded value.

It might be a good idea for me to do a pull request :)

kurkale6ka avatar Jan 25 '19 11:01 kurkale6ka

Could you test if virtualedit^=all to prepend it fairs any better?

tpope avatar Feb 11 '19 15:02 tpope

Sorry, I should've mentioned but I tested that and there is no difference

kurkale6ka avatar Feb 11 '19 15:02 kurkale6ka