I have a large body of LaTeX text (a whole book) which has \textit{}
and \textbf{}
commands interchanged in some places. In other places they are completely missing. How do I create quick shortcuts in Vim so that I can do the following:
- Switch between
\textit{}
to\textbf{}
and vice versa without affecting what is inside{}
. - Wrap word or phrase under cursor into either of the
\textit{}
or\textbf{}
commands. - Remove either the
\textit{}
or\textbf{}
commands where they are not needed but put in by mistake.