Transform Text to Hex

:%!xxd
  • : enters command-line mode
  • % matches the entire file as a range
  • ! filters that range through an external command
  • xxd is that external shell command

Do Hex Edits

Do hex edits

Transform Hex to Text

:%!xxd -r