I use Vim to edit LaTeX files frequently. I want to use % to jump between matching $ which can be used to delimit where mathematical expressions are written.
I have tried using matchit and, separately, I have tried using a filetype.vim (tex.vim) file to add a match to the matchpairs variable (au FileType tex setmps+=$:$). I have managed to get both attempts to jump from the $. However, the match that is found is for a different delimiter.
For example, considering the string $ { test text } $, placing my cursor over the first $ and pressing % would jump me to the closing }, not the last $. Continued use of % jumps me between { and }. Thus, I am stuck inside the match that I want to consider.
Does anyone know how I might accomplish a jump from the first $ to the last $?
f$, and then;and,to jump between them. – Wildcard Feb 15 '16 at 07:42