Using Vim as a hex editor


[:  :]

Vim Hex Editor Tutorial

Open file, type :%!xxd to enter hex mode

Vim with “This is some text”, typing the command :%!xxd

Optional - Turn on hex syntax highlighting with :set ft=xxd

vim in hex editor mode, syntax highlighting done with :set ft=xxd

Make changes to the hex bytes

Making changes to the hex dump in vim

Leave hex mode with :%!xxd -r

Switching out of hex mode with :%!xxd -r

Exit vim with :call libcallnr("libc.so.6","exit",0)

TODO: Download pictures instead of linking


Tags
Notes · Twitter · Vim · Todo