Using vi as a hex editor
:%!xxd
to switch into hex mode:%!xxd -r
to exit from hex mode.Okay, so this isn’t actaully switching to vi’s ‘hex mode’; vi doesn’t have one. What the above actually does is to stream vi’s buffer through the external program ‘xxd’.
沒有留言:
張貼留言