I'm trying to use the substitute command in VIm but don't get the result I excpect: I'm editing an html file, and for example I'd like to replace all "é" characters by the é code (yes it's in French and yes I really like to complicate my life :).
Then I use this command:
:s /é /é /gc to replace all é by é in the line with asking for confirmation. This time it says the pattern hasn't been found, but when it finds it, it adds and don't replace, so the result is that the word "piétons" is replaced by the word "piéétons" ... the character é isn't deleted.
Can someone explain what I'm doing wrong please?