I am using vim-latexsuite to edit a latex file. The text is originally from google doc and there are many math symbols not written in math mode.
I have to add $
before and after each symbol. But that is painful. (Search/Replace does not work because some equation patterns are complicated.)
Is there a way that allows me to visually select the symbols or equestions using Ctrl-V
in visual mode, then after pressing the key, the $
can be automatically added before and after the visual selection?
s$
to surround with$
. And sincec
,s
,W
, and$
are all keyed with the left hand, I'd useysiw$
to surround the word the cursor is on with$
(it has a nice back-and-forth drumming motion). Or combine either with a macro and you're set! – Sagerman