vim-orgmode
vim-orgmode copied to clipboard
Implement export functionality to other formats
Implement export functionality to other formats
It's half-way done. liborgmode has been implemented. The export functionality will be implemented in the tool "orgcmd".
orgmode offers quite a few export formats. Perhaps it would be better to reuse orgmodes capabilities instead of implementing everything again. It would be a lot of stuff to maintain.
See http://orgmode.org/manual/Exporting.html for an overview of the export formats.
It is fairly easy to call orgmodes export from within vim:
cmd = "!emacs -nw --batch --visit=%:p --funcall=org-export-as-pdf"
vim.command(cmd)
Sounds good. A big disadvantage is of course the dependency to emacs. Nevertheless it would be good to implement it.
I would also prefer to get the exportformats implemented in orgcmd. I don't think there are many vim users that like to install emacs.
@fanglingsu: Don't worry. I don't consider dropping the plans for orgcmd. Export via emacs is just a step in between.
Do you know pandoc? It can convert documents in quite a few formats. Might be interesting...
http://johnmacfarlane.net/pandoc/
Sounds interesting. I'll have a look at it.
I'd like to export to ODT. What is required to make that happen? potentially willing to contribute depending on the level of effort.
Pandoc is great, hope vim-orgmode could use pandoc to convert and export org files as other formats.