Examples of anonymous snippets?
Asked by
Jorge
Hi is it possible to get more examples on how anonymous snippets work?
What I am trying to do is to use in latex so that when I type ^^ I would get ^{$1}$0
I tried to do the same for the $$ with the example you provide. So from
inoremap <silent> $$ $$<C-R>
I change it to
inoremap <silent> $$ $$<C-R>
and it seems to work, but
inoremap <silent> ^^ ^^<C-R>
gives me two ^^ when I type two ^^ in insert mode.
Could you give an example on how to make this work?
Thanks,
Jorge
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jorge for more information if necessary.
To post a message you must log in.