To add a space every 4 characters, you can use the following command (at least in VIM):
:% s / \ (.... \) / \ 1 / g
If you use Google "VIM Substitution", you should get some useful examples.
Example:
To add a space every 4 characters you could use
becomes
To a dd a spa ce e very 4 c hara cter s yo u co uld use
source
share