I have the following utilsnips script that I use for Vim:
snippet - "assignment"
<-
endsnippet
I use it for R to expand a dash to the assignment operator. I would like to make it so that a space is put both before and after the <-
on expansion. However, when I put a space before it in the snippet like <-
, it won't expand on hitting Tab
. How should I modify the script to have spaces around the operator? Desired result: <-
.