Simple hexadecimal editor for neovim.
return {
"qleveque/hexa.nvim",
opts={}
}
{
keymaps = {
hex = {
reformat = '<leader>f',
},
ascii = {
replace = 'r',
undo = 'u',
redo = '<C-R>',
},
run = '<CR>',
},
run_cmd = function(file) return 'bot sp | term "'..file..'"' end,
ascii_left = false,
}
:HexSearch: performs a forward search ignoring spaces and newlines:HexSearchBack: same asHexSearch, but backward:HexReformat: properly reformats the hexa content:HexBin: switches between binary and hexa representation:HexRun: runs the binary file:HexGoto: goes to the given hexa position:Hex: open current file as a binary file:UnHex: open original file
- / triggers the
HexSearchcommand - ? triggers the
HexSearchBackcommand - Enter triggers the
HexRuncommand - r replace a single character in the ASCII representation
This plugin requires python3 and xxd.
This plugin was inspired by Raafat Turki's hex.nvim excellent plugin.
