Closed 00krishna closed 6 years ago
Please update neosnippet. And you must substitute the backquotes.
\newcommand{\forwards}{\mbox{````$\Longrightarrow$''}\xspace}
\newcommand{\backwards}{\mbox{````$\Longleftarrow$''}\xspace}
Okay great. This is working now. Thank you so much for your very quick response.
So just to clarify, the problem was just with using 4 backquotes instead of 2? If it is not too much trouble, could you explain? I just want to make sure I avoid this combination in the future. I read through the neosnippet documentation, and saw the material about escaping particular characters in some cases. But I did not see anything about the backquotes.
So just to clarify, the problem was just with using 4 backquotes instead of 2? If it is not too much trouble, could you explain?
Because, neosnippet supports eval feature.
Vim has a built-in expression evaluation. You can also use this feature inside
of snippets if you use back ticks like in the example below. Here the "%:t"
gets expanded to the name of the current active file and the current time gets
inserted by expanding the output of the strftime command.
>
snippet header
File: ${1:`expand('%:t')`}
${2:Created at: `strftime("%B %d, %Y")`}
<
I created a stackoverflow question about this, but figured I should also open an issue in case this rises to that level. Sorry if I am covering established ground.
I am using
Spacevim
and created aLatex
snippet for a document template. The template is rather long, but I include it below. I have not been able to identify the actual cause of the error, though when I try and expand the snippet I get a message:Normally I would not include a long snippet, and would instead share a minimal example. However, I can't really tell what combination of characters is actually causing the problem, since I am rather new to vim and such. Hence I figured I had better include the full snippet.
I can't seem to understand what is causing this issue. I am not using an escaped character in the snippet, name, etc.