3

Does it exist? Is it Linux only? Do I have to install it?

According to this, it's :!xxd to convert the file to hex, and it's :!xxd -r to convert it back again.

1
  • 1
    :!xxd works for me on Windows. I've not installed anything special that I know of.
    – Tumbler41
    Aug 10, 2016 at 18:16

1 Answer 1

7

It is distributed with Vim (as xxd.exe), along with diff.exe.

So it exists and should work on Windows. You don't need to install anything separately, as it is already bundled with Vim (at least in the versions available from vim.org).

4
  • Hey you're right, but it doesn't come up when I'm in there...maybe it's my home directory...or maybe I need to run it directly from that path.
    – leeand00
    Aug 10, 2016 at 20:16
  • Okay so I tried it like this :!C:\Progra~2\vim\vim73\xxd.exe and it just opens a window and sits there.
    – leeand00
    Aug 10, 2016 at 20:25
  • 1
    @leeand00 That is normal. It is waiting for an EOF character (Ctrl + c). Once you type that, it will stop running.
    – DJMcMayhem
    Aug 10, 2016 at 21:16
  • 1
    @leeand00 that is strange, it works without specifying the full path. You should try installing a newer version of Vim and/or start it without the .vimrc and any plugins (manually renaming them or with vim -u NONE -U NONE -N -i NONE).
    – mMontu
    Aug 11, 2016 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.