Friday, March 8, 2013

Searching ascii code in vim

You can use %d to specify the ASCII value of the character to search. For example the following command would replace the SOH character (ASCII value 1) with a space

:%s/\%d1/ /g