vi_tips

 
Inserting in hex in VI
----------------------

CTRL-V x followed by two hexa-decimal digits will insert a byte of that
value.
For example - 
CTRL-V x 41 - this inserts an A
On Windows - CTRL-Q should be used instead

And ofcourse, you can use the xxd and xxd -r