I have a big file that contains among others serveral lines of the following form:
USet07-1 USet07-2 USet08-1 USet08-2 . . . USet22-2 . . .
I want to remove the hyphen/dash
- from these strings in
vim. I search for the strings with:
but when I try to replace these with
I obviously get
for all instances. But what I want is:
USet071 USet072 USet081 USet082 . . . USet222 . . .
How can this be done? Can I reuse parts of the matched string and use it in the substitution?