diff options
Diffstat (limited to 'vim')
| -rw-r--r-- | vim/fun.vim | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vim/fun.vim b/vim/fun.vim index 0dbfe11..25b71ca 100644 --- a/vim/fun.vim +++ b/vim/fun.vim @@ -51,12 +51,23 @@ command Md2Pdfms call Md2Pdfms() function! Md2Html ( ) exe ":w" - exe ":! pandoc -o \"" . expand("%:r") . ".html\"" . " -s \"" . expand("%") . "\"" + exe ":! pandoc -s --toc -H ~/mahcode/markdown/pandoc/pandoc_style.html --highlight-style tango -o \"" . expand("%:r") . ".html\"" . " \"" . expand("%") . "\"" echo "html saved as " . expand("%:p:r") . ".html" endfunction command Md2Html call Md2Html() +" Save markdown as ODT file (.docx is also possible) + +function! Md2Odt ( ) + exe ":w" + exe ":! pandoc -s --toc -H ~/mahcode/markdown/pandoc/pandoc_style.html --highlight-style tango -o \"" . expand("%:r") . ".odt\"" . " \"" . expand("%") . "\"" + echo "ODT saved as " . expand("%:p:r") . ".odt" +endfunction + +command Md2Odt call Md2Odt() + + " Compiles and Runs a C++ project " TODO: how to add program's arguments or file redirectioning from command. |
