-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi,
I have an idea, and I don't really know where to put it, because I have few time to implement by myself now, so I'd like to know if you could keep it? The idea is to implement a visual selection history. It would work like YankRing does, e.g. : gv then successive calls to gv would cycle backward the history.
Use case:
sometimes I have a selection I intend to go back to with gv, but meanwhile something else gets visualed (eh no I meant “selected”) so my selection is lost.
I taught about you because this is a good plugin but I think we don't understand what we can do with it yet.
Now that I think there are more ideas to keep:
-
Visual zones exchange: mapping so you can do, e.g.:
select + "ma"(visual mark a), thenselect + <Plug>VisualZoneExchange, and it would exchange the text currently selected with the visual marka -
Vim's visual-selection access: e.g.: visual-mark
vis mapped to vim's own visual selection -
Background-highlighting of visual marks.
-
Also I have this in my rc files:
" Combine with VMarks?
xmap <silent> <CR> :call UltiSnips#SaveLastVisualSelection()<CR>gvm'I don't know if you use ultisnips, but if you don't: this saves the visual selection, and it is used in the next snippet which can contain a ${VISUAL} markup, which is replaced by the value of the visual selection (or by the selection itself, I don't remember)