How can I search for a ~ (tilde) in vim?
I tried /\~ and / \~ as /~ does not work.
/\~
/ \~
/~
Thanks for your help!
/\~ works here. (with magic as default)
magic
There are other ways,
/[~]
nomagic
/\M~
very nomagic
/\V~
/\~
works here. (withmagic
as default)There are other ways,
/[~]
nomagic
mode/\M~
very nomagic
mode/\V~