Quoth lilydjwg on Saturday, 15 January 2011:
> 2011/1/15 Alexander V Vershilov <[email protected]>:
> > Hello.
> >
> > I have got a problem that sometimes I forgot add attachements
> > to my email, or misspress 'y' key instead of 'a'.
> > Idea of workaround is to add some markup in test (for example
> > '{{file}}') and if there is such a markup doesn't allow to send
> > email in send-hook, otherwise delete this markup and send email.
> >
> > Maybe somebody have workaround for this? Or any other ideas.
> >
> 
> If you use Vim, you can try this ftplugin:
>  http://www.vim.org/scripts/script.php?script_id=2796
> 
> (Resending because the previous one went directly to the sender. I'm
> used to press `r' instead of 'L', sorry.)

I get an error when sourcing this plugin, but only when launching vim
from mutt:

Error detected while processing
/usr/home/sterling/.vim/ftplugin/mail_CheckAttach.vim:
line   12:
E15: Invalid expression: 
E15: Invalid expression: exists("g:loaded_checkattach") || &cp ||
line   13:
E10: \ should be followed by /, ? or &
Error detected while processing function
<SNR>8_TriggerAuCmd..<SNR>8_Init:
line    6:
E15: Invalid expression: 
E15: Invalid expression: exists("g:attach_check_keywords") ? 
line    7:
E10: \ should be followed by /, ? or &
line   10:
E15: Invalid expression: 
E15: Invalid expression: exists("g:checkattach_autocmd") ? 
line   11:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue

If I just start vim from a command line and source the plugin, then no
error occurs.  Any ideas?

-- 
Sterling (Chip) Camden    | [email protected] | 2048D/3A978E4F
http://camdensoftware.com | http://chipsquips.com       | http://chipstips.com

Attachment: pgphtCLwWlnzR.pgp
Description: PGP signature

Reply via email to