Vim has this trick using xxd to open files as hex and vice versa:
In command mode - turn buffer to hex dumped text:
:%!xxd
Reverse that after editing with:
:%!xxd -r
I find myself having to use such functionality a lot, so -
I HEX YOU Neovim!
Currently it just takes the current buffer and opening it's hexdump in another buffer using only lua.
I plan to give it a full editing capability so it could be used as a total replacement for other tools.
This section will guide for the necessary steps to start using this plugin.
- neovim (v0.6.0) or above.
Using packer.nvim
use {
'xdavidel/hexer.nvim',
}
Just open any desired buffer and use the command
Hexer