I have textfiles with paths that have lost underscores between words inline in an OCR process. I want to keep the indentation and put back the underscores in the paths.
I have a path like this:
/dir/file name and stuff
I want it to look like this:
/dir/file_name_and_stuff
If I try:
:s/\s/_/g
I get:
____/dir/file_name_and_stuff