Occasionally someone sends me a
.docx file; opening them in OpenOffice is always a pain because, well, OpenOffice.
Right now I use a variety of commandline tools (such as
odt2txt) to convert these files to plain text, save the plain text to a temporary file, and then view (and maybe edit) it in Vim.
Can this be made easier? Perhaps something with autogroups? Or maybe there are better ways? I would like to just do:
$ vim file.odt
And have Vim take care of the converting for me?
Even better (bonus points) would be if I was also able to save the file (to
file.txt), but that this would not be created until I do a write...