Skip to main content

Hex in vim

Posted in

map <F4> :execute HexView()<CR>
let s:hflag=0
function! HexView()
    if s:hflag == 0
        let s:hflag=1
        return ":%!xxd"
        let s:hflag=0
        return ":%!xxd -r"

Post new comment

The content of this field is kept private and will not be shown publicly.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
 o.OOOo.    `OooOOo.          OOooOoO               
O `o o `o oO o .oOOo.
o O O O O O O
O o o .O o oOooO o
o O OOooOO' O O ooOO OoOOo.
O o o o o o o O O
o .O' O O O o O O o
OooOO' O o OooOO O' OooO `OooO'

Enter the code depicted in ASCII art style.