Saturday, January 19, 2013

remove weird symbols in vim (刪除奇怪字元)



to remove character such as ^M, ^K,...

In vi, do a :%s/^M//g
To get the ^M hold the control key, press V then M (Both while holding the control key) and the ^M will appear. This will find all occurances and replace them with nothing.


No comments:

Post a Comment