.vimrc

changeset 590
8d27d60a9cbc
parent 589
be78943b95de
child 594
8e05f92f8cd4
equal deleted inserted replaced
589:be78943b95de 590:8d27d60a9cbc
444 444
445 445
446 " {{{ Commands 446 " {{{ Commands
447 " Preview markdown mail -- I edit with headers so I box them in a code block. 447 " Preview markdown mail -- I edit with headers so I box them in a code block.
448 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 448 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0
449 command! MailPreviewHTML enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 449 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
450 450
451 " Diff unsaved buffer 451 " Diff unsaved buffer
452 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis 452 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
453 \ | wincmd p | diffthis 453 \ | wincmd p | diffthis
454 " }}} 454 " }}}

mercurial