I tried to replace '&=' with '=&' in Vim, but the command :%s/&=/=&/g
replaced '&=' with '=&='.
Why did that happen ? What command should I use ?
Installing new windows usually involves creating some debris. Plaster, paint flakes, and old sealant can cause quite a mess, and some consequential damage may occur to nearby wallpaper, paintwork, and tiles. During a window replacement project, the area around your windows essentially becomes an active building site.
In colder climates, it is generally more efficient to install windows from the inside to be sealed against the cold air. However, installing windows from the outside is more common in warmer temperatures, as it allows for better airflow and cooling.
Just escape the ampersand.
:%s/&=/=\&/g
You need to escape it because &
is a special character in the replacement that will be replaced with the entire matched pattern.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With