I have a TeX file that contains lines like
\[ De = 0 \]
Now my boss wants equation numbers so I want them to be like
\begin{equation}De = 0\end{equation}
I tried the following command by escaping the backslash with a backslash.
:%s@\\[@\\begin{equation}@gc
I think this should work but I am getting pattern not found error. I have looked at
How to include forward slash in vi search & replace
and
http://vim.wikia.com/wiki/Search_and_replace
Can somebody tell what am I doing wrong?