• :%!xxd:将当前文本转换为16禁止格式。
  • :%!od:将当前文本转换为16禁止格式。
  • :%!xxd -c 12:将当前文本转换为16禁止格式,并每行显示12个字符。
  • :%!xxd -f:将当前文本转回文本格式。

xxd工具: xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form.

od工具: Write an unambiguous representation, octal bytes by default, of FILE to standard output. With more than one FILE argument, concatenate them in the listed order to form the input.