441 let g:interestingWordsRandomiseColors = 1 |
439 let g:interestingWordsRandomiseColors = 1 |
442 " }}} |
440 " }}} |
443 |
441 |
444 " {{{ Commands |
442 " {{{ Commands |
445 " Preview markdown mail -- I edit with headers so I box them in a code block. |
443 " Preview markdown mail -- I edit with headers so I box them in a code block. |
446 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 |
444 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 |
447 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 |
445 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 |
448 |
446 |
449 " Diff unsaved buffer |
447 " Diff unsaved buffer |
450 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis |
448 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis |
451 \ | wincmd p | diffthis |
449 \ | wincmd p | diffthis |
452 " }}} |
450 " }}} |