Put a \Vsearch in your expression to switch to "not very magical" mode. It can go anywhere in the expression. This makes the backslash the only special character in your expression. If you don't match regular expressions or match the beginning or end of a line, this will save you a lot of trouble.
%s/\Vc[i]/g[i][j]/g
source
share