gvs in xnoremap? Y U NO gv?

Asked by Giuseppe Rota

funny memes aside, why is there gvs the end of the xnoremap at https://github.com/SirVer/ultisnips/blob/master/plugin/UltiSnips.vim#L184 ?
shouldn't gv be enough? my texts gets deleted when I accidentally hit tab in visual mode, but maybe there's a reason behind this?
thanks for your plugin.
Giuseppe

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

This is a feature. The next snippet you expand will get the text deleted inserted in the place of ${VISUAL}. Search for VISUAL in the documentation and/or watch http://www.sirver.net/blog/2012/02/05/third-episode-of-ultisnips-screencast/

Can you help with this problem?

Provide an answer of your own, or ask Giuseppe Rota for more information if necessary.

To post a message you must log in.