On Feb 8, 4:25 pm, Peter de Ridder <[email protected]> wrote: > Hi, > > Using vim do edit binary files isn't always that easy. With > display+=uhex you can make unprintable characters show as hex, but the > printable characters are still shown as normal characters. Using xxd > so convert a file to hex gives a nice view of the file in both hex and > printable characters. But editing is still a bit difficult even with > hex editing helper scripts. e.g. insering or removing data isn't easy > since all the xxd offsets number need to be renumbered. >
I noticed the other day that XXD has an option to do a raw dump or convert back from one, without using offsets. This should in theory allow easy insertion/deletion. I have toyed with the idea of tweaking my hex-edit autocmds to use just %!xxd to convert TO hex mode, but then strip off the addresses after conversion. Then to restore, additionally strip off the ASCII view and use the xxd option which only works with raw bytes. Just some random thoughts, I don't have any opinion on your patches as of yet. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
