Wednesday, February 24, 2010

Re: Hex edit in vim

On Tuesday 23 February 2010 16:13:29 Ben Fritz wrote:
> On Feb 22, 3:01 pm, Christian Brabandt <cbli...@256bit.org> wrote:
> > > When I edit the binary file in hex mode in vim. I would like to have
> > > the ascii view updated once I change the hex value. Is it possible to
> > > do so?
> >
> > I think, the best solution would be, to filter your file back through
> > xxd -r and return to the hex view by filtering it again through xxd.
>
> I also think this would be the best solution. It would be made even
> better if you have a command to toggle "hex mode" that is mapped to a
> key, which you could then press twice to do your desired update. Or,
> you could have a InsertEnter/InsertLeave autocmd that automatically
> does the filtering, maybe combined with a CursorHold that checks for
> modifications and does the filtering if it finds one (see :help
> changetick on how to detect this).
>
> I leave you with this:
>
> http://vim.wikia.com/wiki/Improved_Hex_editing
>
hexer was not a solution for you?

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: