vsh icon indicating copy to clipboard operation
vsh copied to clipboard

Text objects in visual mode don't expand the current selection.

Open hardenedapple opened this issue 8 years ago • 0 comments
trafficstars

When in visual selection mode, the mappings ao and io select the first output the current selection is in. Instead, they should expand the current selection.

NOTE -- something similar happens with vim and the i' object

'hel<lo there'

'test >this'

With the visual range between < and >, pressing i' selects just the quotes the cursor is in. However, with the range

'<hello there'

'test >this'

and the cursor at >, then pressing i' extends the range to include the word this.

hardenedapple avatar Mar 15 '17 14:03 hardenedapple