# HG changeset patch # User Meredith Howard # Date 1494004896 14400 # Node ID 24e09b8ff36cb8a6042f752c8528f18c47df713a # Parent afae5b9713e9588d480b341065f81f1cf0d65289 add mail preview cmds diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -497,6 +497,10 @@ let g:neocomplcache_filename_include_exp " {{{ Commands +command! MailPreview enew | set bt=nofile | 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 + if !exists(":DiffOrig") " Diff unsaved buffer command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis