Open TxHawks opened 9 years ago
Currently auto-pairs doesn't support two character pairs.
I wanted something similar, but for blade:
input: {!!<space>
output: {!! | !!}
So I put the following abbreviation in my vimrc:
au FileType blade iabbrev <buffer> {!! {!! !!<del><left><left><left>
In your case, that would be:
au FileType twig,html.twig iabbrev <buffer> {% {% %<del><left><left>
This works, but keep in mind that you need to type a space after the abbreviation.
After I put this in my vimrc, I noticed the syntax highlighting in my vimrc was being messed up because of the two braces in the abbreviation. To fix this, I simply put this on the next line:
"}}
I'm trying to configure the plugin to handle a pair of two characters, so that:
I have this in my vimrc:
but the output I get is
{%%|}
.Am I missing something?