When you insert a snippet from Yasnippet, you have this, for example
# --------------------------------------------------------------
# $1 (`(insert-date)`)
# --------------------------------------------------------------
$2
Then you press tab, to switch from the place $1
to the place $2
.
If you are not in a snippet, the tab key works normal.
I figured out the function that's get called when you press Tab
into snippet, is yas-next-field
. I would like to bind the function to another key instead Tab
.
But only when it's inside a snippet, not affecting the normal working of another key outside snippet, like Tab
already is.
But I couldn't find any refefence on internet about keymapping for only inside yasnippet, not as normal key.
Thanks in advance for the suggestion, it's really appreciated.