Article updated on

How to edit file in hexadecimal mode with vi

With the vim (vi enhanced version) it is possible to edit a file in hexadecimal mode.

 

Edit a File and on the command line type:

:%!xxd

img/1/119/img3.png

img/1/119/img2.png

 

To return to normal edition type:

:%!xxd -r

img/1/119/img3.png

 

Notes

  • Tested with  VIM version 7.4.1689 in Ubuntu