I was trying to create a vim binding to execute a snippet in vscode
I installed a react snippets extension, and instead of manually writing rafce, accepting the autocomplete and pressing Esc, I wanted to bind <leader>c to do it automatically.
I tried this binding
map <leader>c irafce<Enter><Esc>
And was expecting the Enter to accept the autocomplete, but it only writes the snippet without actually executing the snippet
Thank you in advance!