.vimrc

changeset 589
be78943b95de
parent 588
8bf53485a2ae
child 590
8d27d60a9cbc
equal deleted inserted replaced
588:8bf53485a2ae 589:be78943b95de
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 | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
450 450
451 if !exists(":DiffOrig") 451 " Diff unsaved buffer
452 " Diff unsaved buffer 452 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
453 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis 453 \ | wincmd p | diffthis
454 \ | wincmd p | diffthis
455 endif
456 " }}} 454 " }}}
457 455
458 " Local stuff, finish up 456 " Local stuff, finish up
459 try 457 try
460 execute 'source ' . s:filename . '.local' 458 execute 'source ' . s:filename . '.local'

mercurial