Using vi as a hex editor Tue Jan 17 2017 From here and here. 1234# 1. Enter the HEX editor mode in vim::%!xxd# 2. Exit the HEX editor mode in vim::%!xxd -r