Documentation → Hex editor – vi?
August 11th, 2010 by Jgz
Open the file as your normally would ( For example, vi mybinary.fil):
To view in hex:
Enter the following from command mode: :%!xxd
To switch back:
Enter the following from command mode: :%!xxd -r