.vimrc

changeset 564
81f1da7a57e1
parent 563
c1949730cc74
child 567
e34bb3999099
equal deleted inserted replaced
563:c1949730cc74 564:81f1da7a57e1
496 " }}} 496 " }}}
497 497
498 498
499 " {{{ Commands 499 " {{{ Commands
500 " Preview markdown mail -- I edit with headers so I box them in a code block. 500 " Preview markdown mail -- I edit with headers so I box them in a code block.
501 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html > #.~htm~' 501 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0
502 \ | silent exe '0r !links -dump #.~htm~' | silent exe '!rm -f #.~htm~' | 0
503 command! MailPreviewHTML enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 502 command! MailPreviewHTML enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
504 503
505 if !exists(":DiffOrig") 504 if !exists(":DiffOrig")
506 " Diff unsaved buffer 505 " Diff unsaved buffer
507 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis 506 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis

mercurial