title: How do I use vim as a hex editor on OSX?
body: <p>I have tried using <code>:Hexmode</code> and <code>:%!xxd</code> but to no avail. Also tried opening vim with <code>-b</code> flag and then using <code>:setlocal display=uhex</code>.</p>
  
  <p>The <code>:%!xxd</code> did nothing (claimed illegal)
  <code>:Hexmode</code> just left everything as is and didn't change my inserted keys to hex characters. Same for <code>:setlocal display=uhex</code>.</p>
  
  <p>Tried on file type: "ASCII C++ program text"</p>