From: Penny Leach Date: Mon, 7 Mar 2011 18:01:52 +0000 (+0100) Subject: cleaned up mail ft plugin, disabled some mailplate profiles and bought back non to... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ac98d4ab3a7c0cd430bcf11027d89a9bf4145b29;p=dotfiles%2Fvim.git cleaned up mail ft plugin, disabled some mailplate profiles and bought back non to/cc/bcc magic that i have no idea why i had commented out --- diff --git a/.vim/ftplugin/mail.vim b/.vim/ftplugin/mail.vim index 516d1b5..1f0fe55 100644 --- a/.vim/ftplugin/mail.vim +++ b/.vim/ftplugin/mail.vim @@ -36,24 +36,24 @@ ino " And this magic by James Vega, which ensures that we only complete with lbdb " on the recipient lines of the mail header. -"ino DelegateCompletion(1) -"ino DelegateCompletion(0) -" -"fun! DelegateCompletion(next) -" if getline('.') =~? '^\%(To\|B\=Cc\):' -" return "\x18\x15" -" elseif a:next -" return "\x0e" -" else -" return "\x10" -" endif -"endfun +ino DelegateCompletion(1) +ino DelegateCompletion(0) + +fun! DelegateCompletion(next) + if getline('.') =~? '^\%(To\|B\=Cc\):' + return "\x18\x15" + elseif a:next + return "\x0e" + else + return "\x10" + endif +endfun nmap 1 :w:%!mailplate --keep-unknown --auto -nmap 3 :w:%!mailplate --keep-unknown mjollnir nmap 2 :w:%!mailplate --keep-unknown sgn -nmap 4 :w:%!mailplate --keep-unknown catalyst -nmap 5 :w:%!mailplate --keep-unknown mahara -nmap 6 :w:%!mailplate --keep-unknown liip -nmap 7 :w:%!mailplate --keep-unknown gmail +nmap 3 :w:%!mailplate --keep-unknown mjollnir +nmap 4 :w:%!mailplate --keep-unknown gmail +"nmap 4 :w:%!mailplate --keep-unknown catalyst +"nmap 5 :w:%!mailplate --keep-unknown mahara +"nmap 6 :w:%!mailplate --keep-unknown liip