Re: vim / ispell

2001-09-10 Thread Eric Smith

According to Will Yardley on Thu, Sep 06, 2001 at 02:09:55AM -0700:
| so this is a bit off topic, but does anyone have a simple set of vim
| macros to interface with ispell (or an easy way to spellcheck a file
| after editing without leaving mutt)?  i'm usually a decent speller but
| it is annoying not to be able to check a particular word or paragraph.
| 

My way.


 macro compose return :set ispell=newsbody-ispell\nispellsend-message 

---
#!/bin/bash
## /usr/home/eric/bin/newsbody-ispell
newsbody -k from -k subject -hs -q -n $2 -p ispell -- -x %f
--

The above omits headers (except subject - at least I hope it checks
spelling on my subjects).

So when I wish to send the mail form the compose window without
checking spelling, I press the default `y', otherwise I hit enter
and usually save embarrassment.

Only ugliness is, once you are in spell check you have to kill the
mutt process if you wish to abort the sending of the mail.


Sometimes in vim you want to do a spell check interactively, I go

nmap =s :!ispell -S %cr:e %cr

next challenge, is to have the spell check and the auto-sending of
mail automatically executed when I quit vim - tricky.

Hope this helps

--
Eric Smith



Re: vim / ispell

2001-09-09 Thread Eric Smith

According to Will Yardley on Thu, Sep 06, 2001 at 02:09:55AM -0700:
| so this is a bit off topic, but does anyone have a simple set of vim
| macros to interface with ispell (or an easy way to spellcheck a file
| after editing without leaving mutt)?  i'm usually a decent speller but
| it is annoying not to be able to check a particular word or paragraph.
| 

My way.


 macro compose return :set ispell=newsbody-ispell\nispellsend-message 

---
#!/bin/bash
## /usr/home/eric/bin/newsbody-ispell
newsbody -k from -k subject -hs -q -n $2 -p ispell -- -x %f
--

The above omits headers (except subject - at least I hope it checks
spelling on my subjects).

So when I wish to send the mail form the compose window without
checking spelling, I press the default `y', otherwise I hit enter
and usually save embarrassment.

Only ugliness is, once you are in spell check you have to kill the
mutt process if you wish to abort the sending of the mail.


Sometimes in vim you want to do a spell check interactively, I go

nmap =s :!ispell -S %cr:e %cr

next challenge, is to have the spell check and the auto-sending of
mail automatically executed when I quit vim - tricky.

Hope this helps

--
Eric Smith



vim / ispell

2001-09-06 Thread Will Yardley

so this is a bit off topic, but does anyone have a simple set of vim
macros to interface with ispell (or an easy way to spellcheck a file
after editing without leaving mutt)?  i'm usually a decent speller but
it is annoying not to be able to check a particular word or paragraph.

i downloaded one such set of macros (from i forget where) but it was a
bit complex for my needs.

w

-- 
Sintax error in config file! (line 378)
aborted!

PGP Public Key:
http://infinitejazz.net/will/pgp/



Re: vim / ispell

2001-09-06 Thread Denis Perelyubskiy

 * Will Yardley [EMAIL PROTECTED] [09-Thu-01 02:13 -0700]:
 
 so this is a bit off topic, but does anyone have a simple
 set of vim macros to interface with ispell (or an easy way
 to spellcheck a file after editing without leaving mutt)?
 i'm usually a decent speller but it is annoying not to be
 able to check a particular word or paragraph.

i wonder if this is what you are looking for :

http://users.erols.com/astronaut/vim/#Spelling

hth,

denis

-- 
// mailto: Denis Perelyubskiy [EMAIL PROTECTED]
// icq   : 12359698
// PGP   : http://www.cs.ucla.edu/~denisp/files/pgp.asc



Re: vim / ispell

2001-09-06 Thread Ken Weingold

On Thu, Sep  6, 2001, Will Yardley wrote:
 so this is a bit off topic, but does anyone have a simple set of vim
 macros to interface with ispell (or an easy way to spellcheck a file
 after editing without leaving mutt)?  i'm usually a decent speller but
 it is annoying not to be able to check a particular word or paragraph.
 
 i downloaded one such set of macros (from i forget where) but it was a
 bit complex for my needs.

Will, I think you are looking for 'i' in the Compose menu, after you
leave your editor.  It will run ispell on the email.


-Ken



Re: vim / ispell

2001-09-06 Thread Andy Smith

On Thu, Sep 06, 2001 at 10:20:41AM -0400, Ken Weingold wrote:

 Will, I think you are looking for 'i' in the Compose menu, after you
 leave your editor.  It will run ispell on the email.

Is it possible to make this ignore quoted text and perhaps
headers/attributions too?




Re: vim / ispell

2001-09-06 Thread Byrial Jensen

On Thu, Sep 06, 2001 at 16:11:50 +0100, Andy Smith wrote:
 On Thu, Sep 06, 2001 at 10:20:41AM -0400, Ken Weingold wrote:
 
  Will, I think you are looking for 'i' in the Compose menu, after you
  leave your editor.  It will run ispell on the email.
 
 Is it possible to make this ignore quoted text and perhaps
 headers/attributions too?

Yes, I made a program to do excatly this.

Find it at http://home.worldonline.dk/~byrial/spellutils/.



Re: vim / ispell

2001-09-06 Thread Will Yardley

Byrial Jensen wrote:
 On Thu, Sep 06, 2001 at 16:11:50 +0100, Andy Smith wrote:
  On Thu, Sep 06, 2001 at 10:20:41AM -0400, Ken Weingold wrote:

   Will, I think you are looking for 'i' in the Compose menu, after
   you leave your editor.  It will run ispell on the email.

duh! that's exactly what i wanted.

  Is it possible to make this ignore quoted text and perhaps
  headers/attributions too?
 
 Yes, I made a program to do excatly this.
 
 Find it at http://home.worldonline.dk/~byrial/spellutils/.

and that's even better.  seems to work well so far.

w

-- 
Sintax error in config file! (line 378)
aborted!

PGP Public Key:
http://infinitejazz.net/will/pgp/



Re: vim / ispell

2001-09-06 Thread Lorenzo Martignoni

Quoting Will Yardley [EMAIL PROTECTED]: 

 so this is a bit off topic, but does anyone have a simple set of vim
 macros to interface with ispell (or an easy way to spellcheck a file
 after editing without leaving mutt)?  i'm usually a decent speller but
 it is annoying not to be able to check a particular word or paragraph.
 
 i downloaded one such set of macros (from i forget where) but it was a
 bit complex for my needs.

this macro works well for me:

  http://www.fleiner.com/vim/spell.html

lorenzo

-- 
Lorenzo Martignoni  [EMAIL PROTECTED]
Be liberal in what you accept, and conservative in what you send.
   -  RFC1123  -