Remove all white space in a file and replace them with a comma using Vim

前端 未结 4 1933
栀梦
栀梦 2021-01-31 10:12

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 !):

4条回答
  •  清酒与你
    2021-01-31 10:25

    when converting a text file with headers and text fields with spaces I used %s/\s\{2,}/,/g

提交回复
热议问题