Tag: hex
Using vi as a hex editor
by Kev on Apr.21, 2009, under Linux
Sometimes I find it useful to switch to hex mode when editing a file in vi. The command for switching is not very obvious so thought I’d share…
So, open a file in vi as usual, hit escape and type:
:%!xxd to switch into hex mode
And when your done hit escape again and type:
:%!xxd -r to exit from hex mode.