Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mooreds
on May 1, 2019
|
parent
|
context
|
favorite
| on:
Intermediate Vim
How do you escape the & character? I have been bit by this (not escaping &) a few times but never enough to have found the answer.
Asooka
on May 1, 2019
[–]
The same way you escape anything - with a \. E.g. if you wanted to substitute the character x with the sequence &/\ you would type
:s/x/\&\/\\
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: