<<< Date Index >>>     <<< Thread Index >>>

Re: Spellcheck



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, October  5 at 02:43 PM, quoth Rem P Roberti:
> On 2007.10.05 16:15:42 +0000, Kyle Wheeler wrote:
>> On Friday, October  5 at 01:15 PM, quoth Rem P Roberti:
>>> On 2007.10.05 21:55:32 +0000, Michael Tatge wrote:
>>>> * On Fri, Oct 05, 2007 Rem P Roberti (rem@xxxxxxxxxx) muttered:
>>>>> 
>>>>> I have "set ispell="/usr/local/bin/ispell"" appended to my .muttrc file
>>>> 
>>>> So hit "i" in the compose menu to run $ispell. 
>>>> As of lately I use vim's built-in spell checker which is quite neat IMO.
>>>>
>>>
>>> Boy, I really am missing something here.  Hit "i"?  Compose menu?  I'm lost.
>> 
>> The compose menu is the screen that shows up when you tell mutt to 
>> send an email, just after you finish editing that email.
>> 
>> The "i" key is the one on the US qwerty keyboard right between the "u" 
>> and "o" keys, above and slightly to the left of the "k" key. ;)
>> 
>> The ispell setting in mutt is for being able to trigger ispell to 
>> spell check your email before you send it. Mutt does not, however, 
>> force you to check your messages, it just makes it convenient for you 
>> to check them if you desire. By default, the key to do that is the "i" 
>> key (you can, of course, change what key triggers ispell).
>> 
>> But, let's phrase this another way: what were you *expecting* the 
>> ispell setting in mutt to do?
>> 
>> ~Kyle
>
>
> Believe it or not, I actually do know where the "i" key is, but what 
> I couldn't figure out was how to use it. 

I know; I was having fun at your expense. I suppose humor doesn't 
translate well in email, even with smileys. Sorry, I didn't mean to 
offend.

> What I expected to be able to do was to invoke the spell checker 
> directly from within vi, which is no doubt possible, but which so 
> far eludes me.

Ah! Of course, this is indeed quite possible, but nothing you do to 
your mutt configuration files will really affect vi much (except the 
value of $editor, for obvious reasons).

How to run a spellchecker in vi depends on what version of vi you're 
using. Ancient standards-compatible vi may not have a good way. If 
you're using vim (as most vi folk are), then the technique depends on 
what version of vim you're using. If you're using version 7.0 and 
beyond, all you need to do is run

     :set spell

(in vim) and it will spellcheck whatever you're editing. If you're 
using an older version, you'd have to do something like this:

     :!ispell %

I used to (before I got vim7) have the following spelling macro in my 
vimrc:

     autocmd FileType mail command aspe ':w<CR>:!aspell -e -c %<CR>:e<CR><CR>'

Which allowed me to trigger aspell (an ispell alternative with a nicer 
interface) on my email by executing

     :aspe

If you're using something like vile or elvis or one of the other 
vi-like programs, you'd have to check with their documentation to see 
what would work.

> Nevertheless, once you pointed out to me where the real 
> compose screen exists, I find that I really do have a workable spell 
> checker.

Excellent! :)

~Kyle
- -- 
In order to keep a true perspective of one's importance, everyone 
should have a dog that will worship him and a cat that will ignore 
him.
                                                        -- Dereke Bruce
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHBrM+BkIOoMqOI14RAmN6AKCQyi4ENGwQhNzUot1xjsPgR1dzcQCg5vjB
TVh9cei+OGyAKvYpPa52O2Q=
=/T9Z
-----END PGP SIGNATURE-----