Wednesday, May 19, 2010

Use binary/hex editor in vim

1. switch into hex mode
open a file in vim as usual,
and press Esc and type:
:%!xxd

2. switch to text mode
press escape again and type:
:%!xxd -r