Can someone please tell me how to write a snippet which can emulate/simulate the behaviour of pressing the
<Enter> etc keys from keyboard?
The following doesn't work
snippet undo "just for argument's sake" <esc> endsnippet
neither does this
snippet undo "i want this to result in pressing the esc key" `!p<esc>` endsnippet
snippet undo "simulate esc behaviour" `!p snip.rv=<esc>` endsnippet