Which regex do I have to use in VIM to replace all words 'to' from a text with the word 'foo'? (I don't want to replace 'to' when it happens in a word like 'together').
this should work:
I'm sure there's a simpler way, but:
would do the trick
EDIT: John T has posted the simpler way :D