Is there a way to set Negate in the substitution command? In other words how to substitute any character except |
to -
and all |
to +
. Example:
| some text | other text |
to
+-----------+------------+
Is there a shortest way than :s/[^|]/-/g | s/|/+/g
?