Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jbisbee (2452)

jbisbee
  (email not shown publicly)
http://jbisbee.multiply.com/
AOL IM: Bisbee23 (Add Buddy, Send Message)
Yahoo! ID: jbisbee (Add User, Send Message)

Journal of jbisbee (2452)

Friday April 02, 2004
11:28 AM

mutt/vim Spell Checking E-mail as You Type

[ #18177 ]
Casey posted in his journal about forgetting to spell check after composing his e-mail. I broke down a couple months ago and went through the some of the top vim scripts on vim.org to see if I could find a decent spell checker.

Well I found one called vimspell.vim and this is how I implemented it only to auto spell check my e-mail as I type and not any old text document I open up (which got REALLY anoying)

  1. grab vimspell.vim
  2. mkdir ~/.mutt
  3. cp vimspell.vim ~/.mutt/.
  4. vim ~/.mutt/vimrc # should only contain the following 5 lines

    source ~/.vimrc
    source ~/.mutt/vimspell.vim
    highlight SpellErrors ctermfg=Red cterm=underline term=reverse
    set filetype=mail " correct syntax highlighting
    set textwidth=72  " wrap at column 72

  5. In your ~/.muttrc or (in my case ~/.mutt/mutt.settings) tell vim to use the new ~/.mutt/vimrc file:

    set editor = "vim -u ~/.mutt/vimrc"

and presto you should have spell checking as you type.

UPDATE - fixed line wrapping issue with long "highlight..." ~/.mutt/vimrc line

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Line 3 of ~/.mutt/vimrc should not have the + in it. The line should be:
    highlight SpellErrors ctermfg=Red cterm=underline term=reverse
    • the "+" was to denote that it should have been continued on the previous line. I'm just not proficent in markup to make the darn thing not wrap
      --

      -biz-

  • I also use vim, mutt and vimspell.vim. Somehow my configuration is much less complicated. First, I have this abbreviation defined, which completely avoids vimspell.vim:

    cab aspe :w<CR>:!aspell -e -c  %<CR>:e<CR><CR>

    That allows me to type ":aspe" and have the current document checked by 'aspell' as an e-mail message. This is a solution on it's own.

    I use 'vimspell.vim' to have spell check as I type. It seems to just check the document 'every once in a while'. However, it doesn'

  • Hi, I've followed the instructions to get on-the-fly spell checking working within Mutt, using Aspell and the vimspell.vim script, but with no luck. One thing could be that it's been a year since these instructions were posted and a lot has changed since then. Any ideas if these still apply? Thanks.