* To prepare Orgmode export for Vim (via emacs) ** Prerequisites 1. Vim is installed with vim-orgmode: https://github.com/jceb/vim-orgmode/blob/master/doc/orgguide.txt 2. Install and then launch emacs (comes with org-mode): sudo aptitude install emacs && emacs 3. Exit with C-x C-c mkdir .emacs.d/lisp/ cd .emacs.d/lisp/ wget https://raw.githubusercontent.com/hniksic/emacs-htmlize/master/htmlize.el Edit emacs init file ~/.emacs (or cd ~ && wget https://pyyhttu.kapsi.fi/debian/emacs/emacs ~/.emacs) Tip: (To ensure you're indeed sourcing ~/.emacs you can open it directly by doing: M-x eval-expression RET (find-file user-init-file) RET): #+BEGIN_SRC # edit init file in emacs C-x C-f ~/.emacs RET # added there (eval-after-load "org" '(require 'ox-md nil t)) (setq org-html-htmlize-output-type 'inline-css) (add-to-list 'load-path "~/.emacs.d/lisp/") (require 'htmlize)') #=END_SRC Save changes C-x C-s After this, with emacs I can initialize .org export to .html with C-c C-e. VIM can initialize org-export for html as well with \eh and apply custom css: https://raw.githubusercontent.com/gongzhitaao/orgcss/master/src/index.org can be converted to: https://gongzhitaao.org/orgcss/