vim-visual-multi icon indicating copy to clipboard operation
vim-visual-multi copied to clipboard

Merge regions

Open eyalk5 opened this issue 1 year ago • 1 comments

Describe the issue:

Suppose I have a table where every cell is a VM region. I now want to unite some adjacent regions. I couldn't find how to do it and \m didn't work. One would expect that visual selection of a section that intersects two different regions, and pressing \\m would merge the two sections.

It is more of a feature request. Thanks. Btw, there could be other possibilities, maybe better, or I might have missed such option.

eyalk5 avatar Jun 21 '23 23:06 eyalk5

\\m (merge regions) works from normal mode, not from visual mode. It merges overlapping regions, not simply adjacent ones.

From visual mode you should use \\a (visual add) to merge the regions you want, it should merge the regions found below.

mg979 avatar Jun 22 '23 16:06 mg979