For example, here's a nested autocmd that saves the buffer after Vim losing focus. So, in the likely event that CheckAttach recognizes a keyword like 'atttach', it will ask for attaching a file every time when returning to Vim.
How about making that Check optional? Instead, thinking of a mutt user that uses Vim as its text editor, the autocmd reminding the user to add an attachment when quitting Vim seems the most useful and indispensable.
For example, here's a nested autocmd that saves the buffer after Vim losing focus. So, in the likely event that CheckAttach recognizes a keyword like 'atttach', it will ask for attaching a file every time when returning to Vim.
How about making that Check optional? Instead, thinking of a mutt user that uses Vim as its text editor, the autocmd reminding the user to add an attachment when quitting Vim seems the most useful and indispensable.