Is it possible to remap comma in select mode to exit select mode, enter insert mode, [optionally: go the end of the last selection (which the cursor seems to be for ultisnips)] and append a comma? This can be very useful while using a ultisnips snippet below to quickly add new items to a opt=val
type argument list: new ,opt1=val1,opt2=val2,opt3=val3
snippet , "add one more item" i
,${1:option}=${2:value}
endsnippet
I tried something like this:
smap , <Esc><Esc>a,
but it doesn't do that, and ends up deleting the last selection.