I had an array in my code that's andI I used an index c[i]
. I wanted to change c[i]
and write g[i][j]
in that place. I tried to use the command %s/c[i]/g[i][j]/g
but did something unusual.
How can I do such replacement in Vim? Thanks in advance.