I found that to press
]] to close a matching bracket by means of
<Plug>(vimtex-delim-close) a little inconvenient, as I am using a French keyboard and have to press two keys to type
]. So I tried to use other keys, such as
). And typing the following when in a tex file works:
:inoremap ) <C-R>=<Plug>vimtex#delim#close()<CR>
But, if I put the above inside my
.vimrc file, I receive the error:
E15: Invalid expression: <Plug>vimtex#delim#close()<CR>
I don't really understand how this works, such as
<C-R>. So maybe I am just doing it wrong?
In any case, any help or reference would be greatly appreciated.
P.S. I think this is not a
vimtex-specific question, but, as it involves this good package, I shall still tag as such.