I need to put a comma between any two digits in a string of digits. For example, I want this
to become this
The approach I took was the following
Strangely enough, the substitution command above when applied to the string in the example gives
If I apply the substitution command once again, it gives what I want. But why just one instance of the command don't work?
vim version I'm using is
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 18 2020 18:29:15)