VIM - Edit in Binary

Load the binary file.

Pipe it through xxd to get it in hex dump format.

:%!xxd

To put it back into binary.

Pipe it through xxd in reverse to put it back into binary.

:%!xxd -r