VI Regular Expressions - Replacing using current line number
:help sub-replace-expression
You can construct a replace expression like:
:s@ xx$@\=" " . line(".")@
... Which works for me.
:help sub-replace-expression
You can construct a replace expression like:
:s@ xx$@\=" " . line(".")@
... Which works for me.