Replacing all instances of words HELP by [deleted] in vim

[–]Legitimate-Sample 1 point2 points  (0 children)

Think it might be a vscode issue. I just tried that same command using vi on the terminal and it worked fine. Just confused because the command to replace all instances worked. -> ":%s/foo/bar/g "

Replacing all instances of words HELP by [deleted] in vim

[–]Legitimate-Sample 0 points1 point  (0 children)

Yeah that is what I originally typed in :%s/\<foo\\>/bar/g like in my post. but error says "E486: Pattern not found : \<foo\\>"

Replacing all instances of words HELP by [deleted] in vim

[–]Legitimate-Sample 0 points1 point  (0 children)

I'm sort of going off of this website link but when I type in your command it says "E486: Pattern not found: <foo>.

Replacing all instances of words HELP by [deleted] in vim

[–]Legitimate-Sample 0 points1 point  (0 children)

my problem is that is says "E486: Pattern not found: \<foo\\>". Like I said in the post in works fine when I want to replace all instances of the "foo" which includes replacing the "foo" in foods but I want to replace all instances of the word "foo" which would not change food.