# HG changeset patch # User Meredith Howard # Date 1494006065 14400 # Node ID c1949730cc7412b3c9a0e6d0012eb1e6fe71493b # Parent 24e09b8ff36cb8a6042f752c8528f18c47df713a Fix up previews diff --git a/.pandoc/templates/mail.html5 b/.pandoc/templates/mail.html5 --- a/.pandoc/templates/mail.html5 +++ b/.pandoc/templates/mail.html5 @@ -9,6 +9,6 @@ - $body$ +$body$ diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -497,9 +497,10 @@ let g:neocomplcache_filename_include_exp " {{{ Commands -command! MailPreview enew | set bt=nofile | silent exe '!mutt-md2html # > #.~htm~' +" Preview markdown mail -- I edit with headers so I box them in a code block. +command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```}O```' | silent exe '%!mutt-md2html > #.~htm~' \ | silent exe '0r !links -dump #.~htm~' | silent exe '!rm -f #.~htm~' | 0 -command! MailPreviewHTML enew | set bt=nofile | execute '0r !mutt-md2html #' | 0 +command! MailPreviewHTML enew | set bt=nofile | 0r # | exe 'norm 0O```}O```' | silent exe '%!mutt-md2html' | 0 if !exists(":DiffOrig") " Diff unsaved buffer