vi and vim as a hex viewer


vi and vim as a hex viewer. Instead of having separate tool for different task I prefer one tool for all.

Vi and Vim editor offers viewing file in hex mode. Here is how to switch between hex and normal editing mode in vim.

Switching to hex mode – Open a file in vim, hit escape and type:

:%!xxd

To exit out of hex mode

:%!xxd -r

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s