Anyone has an idea how to remove all white space and replace them with a comma , in a file using Vim ? File input example (words could be everywhere !):
,
First delete the blank lines:
:g/^\s*$/d
Then use a substitution (:s///) over each line (%) to replace all (g) continuous whitespace (\s\+) with a comma (,).
:s///
%
g
\s\+
:%s/\s\+/,/g