I am using vim to write a document in Latex.
I have to replace a regex with the italic code, which is \textit{regex}
.
I use the Vim code:
:%s/regex/\textit\{regex\}/g
But the \t
expression is interpreted as a tab.
Would anyone know how to input \textit{}
in the vim replace tool, without having \t
interpreted as a tab?