Simply question,i want to search & as exact word,how to do in vim?I had try \& and \<&> but doesn't work
Vim,how to escape &?
vim
Search for a plain & (unescaped) and you will match this character. If you want the & surrounded by whitespace (or rather alone at a word boundary) you'd type \<&\>. (Both of those regexps must be initiated by vim's search command /.)Note the difference: \ is the escape character for a special interpretation of the subsequent character, and / is vim's search forward command (and ? used to search backward).