[wplug] Automatic spell check from mutt
Brian Medley
bpm-list-wplug at 4321.tv
Tue Aug 26 10:28:41 EDT 2003
On Tue, Aug 26, 2003 at 12:06:22AM -0400, Mike Procario wrote:
> I have never worked with autocmd. I will look into it but I need
> to be able to only trigger the spell check from email and some
> other files. Perhaps I need a special .vimrc file just for email.
> Spell checking python or C could get tedious.
That's why I suggested putting it in a ftplugin directory. That stands for
File Type Plugin. It will only be executed when vim determines that you
are in a file of a particular type. I'd try
"~/.vim/after/ftplugin/mail.vim" first. See ":help ftplugin".
> > > from mutt after I have finished editing my message, but what I
> > > would like is that as soon as I quit vim, then aspell or ispell
> > > gets run automatically. I cannot seem to find a hook for after the
> > > message is written and before it is sent.
> >
> > Have you considered a vim autocmd?
> >
> > :autocmd VimLeavePre * call SpellingStuff()
> > :help autocmd
> >
> > You can probably put it in ftplugin/mail.vim file in ~/.vim.
--
~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/ (___) \|/ _,.-=~'`^`
@~./'O o`\.~@
"Knowledge is Power" /__( \___/ )__\ *PPPFFBT!*
-- Francis Bacon `\__`U_/'
_,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|' ^^`'~=-.,__,.-=
~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.-=~'`^`
More information about the wplug
mailing list