Re: [Hampshire] Vim spell checking

Top Page

Reply to this message
Author: Damian Brasher
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Vim spell checking
Philip Stubbs wrote:
> I use aspell. I have the following line in my .vimrc file
>
> map <F7> :w!<CR>:!aspell --mode=email -c %<CR>:e<CR>
>
> When I press F7, the file in the editor is spell checked. I use vim
> as my email editor for mutt, so having the email mode means it skips
> most of the headers and all the quoted text.
>


Thanks, this works a treat, only need to remember to 'Esc' to normal mode
before hitting F7.

Damian B

--
Damian Brasher
www.interlinux.co.uk
All mail scanned by clam-av http://www.clamav.net/