I want to find and eventually delete all whitespace between all occurrences of an equal sign and the next character. For example, turn
@article{article1,
author= {author1},
journal= {journal1},
year= 2022,
}
@article{article2,
author= {author2},
journal= {journal2},
year= 2022,
}
into
@article{article1,
author={author1},
journal={journal1},
year=2022,
}
@article{article2,
author={author2},
journal={journal2},
year=2022,
}
I tried to do this in vim with the following regex
:s/=\zs\s\+\ze.//
However, an error message is returned:
E486: Pattern not found: =\zs\s\+\ze.
even though all the desired occurrences are highlighted correctly.
Does someone know, what I am doing wrong?
:%s/=\s\+/=/g