Oct 10, 2018

[HDGEM] How to replace newline or tab with comma in vim

To replace all newline characters with comma use ":1,$s/\n/,/g" 
If you want to replace all the tab characters in file with comma then instead of the above    command use this => :1,$s/(Press CTRL+v) then (Press TAB)/,/g

Posted By Blogger to HDGEM at 3/30/2017 11:52:00 AM