I want to replace all occurrences in a text with ","
for example
"word1,word2,word3"
became
"word1, word2, word3"
this one is bad
:%s/,/, /g
because
"word1,word2,word3, word4"
became (note the double white space)
"word1, word2, word3, word4"
This one delete the next letter
:%s/,[a-z]/, /gc
word1,word2...
became
word1, ord2
How to do? Thanks
:[range]!sed <sed script>and let sed filter the input. – D. Ben Knoble Dec 11 '23 at 01:53sed -ineed an input file, like a%appended to the line? – Friedrich Dec 12 '23 at 11:30