Last Updated: February 25, 2016
·
420
· squioc

Vim as hexadecimal editor

Vim is a great editor. After a learning time, you can operate complex tasks in an optimized way.

But, sometime, you have to inspect some binary data. Not text. Why not use Vim as hexadecimal editor to explore these data?

Thanks to the xxd utility, we can make use of the power of Vim to edit binary data.

To convert binary data into hexadecimal text, enter:

:%!xxd

To convert hexadecimal text into binary data (before saving), enter:

:%!xxd -r

via pellelatarte (in french)