[SATLUG] searching for a hexvalue with vi

Borries Demeler demeler at biochem.uthscsa.edu
Thu Dec 20 07:46:03 CST 2007

> > For example, I want to search for 0xA0 in a document - how would I go
> > about this? I tried: /0xA0 or /#A0 but none of these worked. Is it possible?
> > What I want to do is to replace a particular binary character in the document.
> I don't know about an arbitrary hex character, but I get rid of returns with
> :% s/\r//

Yes, I need to know how to search for an arbitrary hex char. I know how to search for \r and \n
like this, but I need to know how to do it for any non-ASCII character. I don't care if I
search for it in its octal, decimal or hexadecimal representation.


More information about the SATLUG mailing list