vim as hex editor

Written in

by

By default vim cannot do that for you. But you can use cool tool xxd. Simply use this:

:%!xxd

and instead of saving the file run this:

:%!xxd -r

This info is from this blog:

http://www.kevssite.com/2009/04/21/using-vi-as-a-hex-editor/

Tags