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.
May 10th, 2009 on 9:41 pm
Very nice!, vi is the gratest editor ever made.
October 29th, 2009 on 1:14 pm
Thanks mate.
March 15th, 2010 on 9:17 pm
Thanks for the tip
March 18th, 2010 on 9:40 am
Thanks, it is very useful.