Re: Vim7: Spell checking not working with ft=mail

2006-10-15 Thread A.J.Mechelynck

Anthony Campbell wrote:

On 15 Oct 2006, A.J.Mechelynck wrote:

Anthony Campbell wrote:

On 13 Oct 2006, A.J.Mechelynck wrote:
When I set 'spell', text (but not tag names or attributes) is 
spell-checked in my HTML files. If I :setlocal ft=text, everything is 
spell-checked, and :setlocal ft=html brings it back to text-only.


What does it say when you do

:verbose set spell?

(with the question mark), the active cursor being in a non-spell-checked 
HTML file?




After some more research, I find that if syntax is on, then spell does
not highlight any errors in html files. If it is off, it does. This
seems like a bug to me. At least, it's not what I want.

Anthony

Works for me -- the curly highlighting is in addition to HTML syntax 
highlights. For instance between A HREF=... and /A I notice bluish-grey 
(slateblue they call it) text with straight underline in the same colour 
(for HTML link text) and also with curly underline in red (for spelling 
error).


However I notice that (with 'spell' on and 'spelllang' set to fr), 
perfectly valid French words are highlighted because one or more accented 
letters is replaced by an entity: donné is a valid French word, but the 
spell checker highlights donn in donneacute; as an error. Similarly 
deacute;sappointeacute;s (for désappointés).


After setting syntax off then on clears your spell checking highlights, you 
should (I repeat) place the active cursor in the file where syntax 
highlights have replaced spell highlights and use :verbose set spell? 
with question mark. If 'spell' has been turned off, it should tell you 
which script did it.




It just says spell


Then spell checking mode is on, even though you don't see its highlights.



Maybe you said it in an earlier post but I don't remember it: are you using 
gvim or Console Vim? (I am using gvim 7.0.131, huge version with GTK2/Gnome 
GUI, running on Novell-SuSE Linux Professional 9.3.)



I'm using the Debian gtk version (7.0). It happens both with console and
gvim.

Bram suggests emailing the author of the html.vim file, which I've done.
All other syntax files work as expected.

Anthony



- Which version of the HTML syntax script are you using? By doing

:view $VIMRUNTIME/syntax/html.vim

you'll see the date near the top. Mine is dated 2006 Jun 19; if yours is older 
than that, you can try downloading up-to-date runtime files from 
ftp://ftp.vim.org/pub/vim/runtime/ (except its dos/ subdirectory).


- If you are willing to compile an up-to-date version yourself (and, if it 
works, uninstall the Debian Vim), it might help (but you need a development 
version of every package used by Vim for that). See my howto page 
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm for further info if 
you want to try this. If you do, you don't need to uninstall the Debian Vim 
until you have compiled your own version, seen that it works from where the 
make run put it (on my system it's /root/.build/vim/vim70/src/), and are 
ready to make install.


- Have you checked all parts of HTML body text (I mean, purposely misspelling 
something in a comment, in non-comment text outside of all tags except 
HTMLBODY, inside of some additional tags, ...)?


- Are you using a color scheme? If you are, try removing it, e.g. by setting

:colorscheme default

after starting gvim.

- Other than that I'm at the end of my wits.


Best regards,
Tony.


Re: Vim7: Spell checking not working with ft=mail

2006-10-13 Thread leslie . polzer
On Thu, Oct 12, 2006 at 10:50:31PM +0200, A.J.Mechelynck wrote:

 (i.e., 3 nonempty lines and one empty line). You may add more headers,
 and/or fill them in. Then your body text will be after the first
 empty line, and it will not be regaded as headers.
Interesting.  The subject is checked for errors, but the body part
still isn't.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/


pgp6BpiqjH0n2.pgp
Description: PGP signature


Re: Vim7: Spell checking not working with ft=mail

2006-10-13 Thread A.J.Mechelynck

Anthony Campbell wrote:

On 12 Oct 2006, A.J.Mechelynck wrote:

Tom Purl wrote:
[...]

That's weird.  I use Gvim to edit web mail via the Mozex extension.  I
can place this is a tset at line one in my message after executing the
`set filetype=mail` command, and it will be spell-checked.  I don't have
to include any headers or empty lines or anything else like that.

Hm. Apparently you're right. By doing the following:

:new
:setl ft=mail
:setl spell
a
this is a tset

with a space at the end of the line, I get a blue curly underline under 
this and a red one under tset.



Do you have spell checking on? Normally yes, but still... what is the reply 
to


:verbose setlocal spell?

when you do it (with the question mark) in a window where the 'filetype' is 
set to mail but you don't see spell-check highlights? Unless you yourself 
set 'spell' on, e.g. by having set spell in your vimrc, Vim will by 
default do no spell-checking at all.




I'm sorry; I can't post to the list, although I can read it. (Feel free
to forward it.)

Just to say that I don't get spelling checked with html files either.

Anthony  



I. To post to the list, you must:

1. Subscribe to it. This is a two-step process, see 
http://www.vim.org/community.php


2. Send a message, in plain text only, to the list address (e.g., vim -at- vim 
-dot- org), from your subscribed address.



II. You didn't say whether 'spell' was set.


Best regards,
Tony.


Re: Vim7: Spell checking not working with ft=mail

2006-10-13 Thread Tom Purl
 Anthony Campbell wrote:

 I know, I have subscribed, but my posts never appear. (This is not new;
 it's been like that for many months.) I've tried unsubscribing and
 resubscribing, but no luck.

 Did you receive the confirmation email which was sent to you as an
 auto-reply when you sent a mail to vim-subscribe -at- vim.org ? And
 did you do what it said? (If you did, you should receive two copies of
 the present email.)

 Is the From: line of your messages to the list identical to that on
 your two subscribe emails? (Messages From non-subscribed email
 addresses are silently discarded by the mail robot for the list).

 Is the list address present in the To: or Cc: (not Bcc:) line?
 (Reply to Sender on a post will never send to the list; Reply to
 All ought to).

 Are your messages in plaintext only, with no HTML? (HTML messages are
 silently discarded as an anti-spam measure; they never make it to the
 list.)

Another possibility is that the Vim listserver is bouncing your messages
and your mail provider isn't telling you that this happens.  I had a
problem for a while when my mail provider was recognized as a spammer by
the listserver, and all of the messages that I sent to the list were
bounced.  Luckily, my mail provider sent an error e-mail to me that gave
me a decent amount of troubleshooting information.

HTH!

Tom Purl



Re: Vim7: Spell checking not working with ft=mail

2006-10-13 Thread A.J.Mechelynck

Anthony Campbell wrote:

On 13 Oct 2006, A.J.Mechelynck wrote:

Anthony Campbell wrote:

On 13 Oct 2006, A.J.Mechelynck wrote:

Anthony Campbell wrote:

I'm sorry; I can't post to the list, although I can read it. (Feel free
to forward it.)

Just to say that I don't get spelling checked with html files either.

Anthony  


I. To post to the list, you must:

1. Subscribe to it. This is a two-step process, see 
http://www.vim.org/community.php


2. Send a message, in plain text only, to the list address (e.g., vim 
-at- vim -dot- org), from your subscribed address.



II. You didn't say whether 'spell' was set.


Best regards,
Tony.

I know, I have subscribed, but my posts never appear. (This is not new;
it's been like that for many months.) I've tried unsubscribing and
resubscribing, but no luck.
Did you receive the confirmation email which was sent to you as an 
auto-reply when you sent a mail to vim-subscribe -at- vim.org ? And did you 
do what it said? (If you did, you should receive two copies of the present 
email.)


Is the From: line of your messages to the list identical to that on your 
two subscribe emails? (Messages From non-subscribed email addresses are 
silently discarded by the mail robot for the list).


Is the list address present in the To: or Cc: (not Bcc:) line? 
(Reply to Sender on a post will never send to the list; Reply to All 
ought to).


Are your messages in plaintext only, with no HTML? (HTML messages are 
silently discarded as an anti-spam measure; they never make it to the list.)




Yes to all these. I think Tom may be on the right lines about this.


And yes, spell is set and if I turn off html (set ft=text) it does work.
But if html is specififed nothing is spell-checked.

Anthony
When I set 'spell', text (but not tag names or attributes) is spell-checked 
in my HTML files. If I :setlocal ft=text, everything is spell-checked, 
and :setlocal ft=html brings it back to text-only.


What does it say when you do

:verbose set spell?

(with the question mark), the active cursor being in a non-spell-checked 
HTML file?

It says nospell

Anthony


'nospell' is the default setting, and it prohibits all spell checking. Add the 
line


set spell

to your vimrc, and restart Vim. If it doesn't cure your problem, retry 
:verbose set spell? in a non-spell-checked file to see if some other script 
undid what your vimrc had done.



Best regards,
Tony.


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Tom Purl
I'm using Vim with a filetype of mail right now, and it's able to do
on-the-fly spell-checking :)

A lot of filetypes have special provisions where they turn
spell-checking off in certain areas that you don't want to spell-check.
I think that the mail filetype turns off spell checking if what you're
text is after an arrow (, , etc.).  Is that what you're doing?

HTH!

Tom Purl

 Hi,

   I'm using Vim 7.0.10 and wanted to try out the new on-the-fly
 spell checking.  It works great, but as soon as I set ft=mail, it stops
 working (no highlighting anymore).

   Any clues why?

 Leslie

 --
 gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
 http://nic-nac-project.de/~skypher/




Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread leslie . polzer
On Thu, Oct 12, 2006 at 02:40:48PM -0500, Tom Purl wrote:

 A lot of filetypes have special provisions where they turn
 spell-checking off in certain areas that you don't want to
 spell-check.
I read about that;  however, mail.vim doesn't seem to do that (I could
be wrong here).

 I think that the mail filetype turns off spell checking
 if what you're text is after an arrow (, , etc.). Is that what
 you're doing?
No, I wasn't quoting anything...

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/


pgpIVVucbYnYs.pgp
Description: PGP signature


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Tom Purl
 I'm using Vim with a filetype of mail right now, and it's able to do
 on-the-fly spell-checking :)

 A lot of filetypes have special provisions where they turn
 spell-checking off in certain areas that you don't want to spell-check.
 I think that the mail filetype turns off spell checking if what you're
 text is after an arrow (, , etc.).  Is that what you're doing?

Whoops, it's too bad that Vim doesn't yet come with on-the-fly grammar
checking :)  here's what I meant to say in the second-to-last sentence
in the above paragraph:

I think that the mail filetype turns off spell checking if what you're
typing is after an arrow (, , etc.).


 HTH!

 Tom Purl

 Hi,

   I'm using Vim 7.0.10 and wanted to try out the new on-the-fly
 spell checking.  It works great, but as soon as I set ft=mail, it stops
 working (no highlighting anymore).

   Any clues why?

 Leslie

 --
 gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
 http://nic-nac-project.de/~skypher/






Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Tom Purl
 On Thu, Oct 12, 2006 at 02:40:48PM -0500, Tom Purl wrote:

 A lot of filetypes have special provisions where they turn
 spell-checking off in certain areas that you don't want to
 spell-check.
 I read about that;  however, mail.vim doesn't seem to do that (I could
 be wrong here).

I think I've checked this before and I'm pretty sure that mail.vim does
pick and choose where it spell-checks.  I know that on my version of Vim
(Windows 7.0), new text is spell-checked while text after an arrow is
not.

 I think that the mail filetype turns off spell checking
 if what you're text is after an arrow (, , etc.). Is that what
 you're doing?
 No, I wasn't quoting anything...

Could you post an example of the text that isn't being spell-checked?



Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Charles E Campbell Jr

[EMAIL PROTECTED] wrote:


On Thu, Oct 12, 2006 at 02:40:48PM -0500, Tom Purl wrote:

 


A lot of filetypes have special provisions where they turn
spell-checking off in certain areas that you don't want to
spell-check.
   


I read about that;  however, mail.vim doesn't seem to do that (I could
be wrong here).

 


I think that the mail filetype turns off spell checking
if what you're text is after an arrow (, , etc.). Is that what
you're doing?
   


No, I wasn't quoting anything...

 



Well, syntax/mail.vim *does* have a lot of NoSpell cluster referrals in 
it.  What part of the email
message are you referring to?  Basically, mail.vim does spell checking 
only in the letter portion,

not the headers (or Subject: ...), etc.

Regards,
Chip Campbell



Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread leslie . polzer
On Thu, Oct 12, 2006 at 04:18:21PM -0400, Charles E Campbell Jr wrote:

 Well, syntax/mail.vim *does* have a lot of NoSpell cluster referrals
 in it.
You're right, I just looked at ftplugins/mail.vim.

 What part of the email message are you referring to? Basically,
 mail.vim does spell checking only in the letter portion, not the
 headers (or Subject: ...), etc.
I'm talking about the body, i.e. I'm just starting to write stuff at the
top without any headers.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/


pgpCxw508y8wk.pgp
Description: PGP signature


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread leslie . polzer
On Thu, Oct 12, 2006 at 03:01:04PM -0500, Tom Purl wrote:

  I think that the mail filetype turns off spell checking if what
  you're text is after an arrow (, , etc.). Is that what you're
  doing?
 
  No, I wasn't quoting anything...

 Could you post an example of the text that isn't being spell-checked?
Sure, here goes the whole file:

SNIP ---
this is a tset.
SNIP ---

when ft=mail is off, this is marked blue because it doesn't start with
a capital 't' and tset is red, as it is obviously the victim of a
typographic error.  With ft=mail on nothing shows up.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/


pgpgJ89wK0GG5.pgp
Description: PGP signature


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread A.J.Mechelynck

[EMAIL PROTECTED] wrote:

On Thu, Oct 12, 2006 at 04:18:21PM -0400, Charles E Campbell Jr wrote:


Well, syntax/mail.vim *does* have a lot of NoSpell cluster referrals
in it.

You're right, I just looked at ftplugins/mail.vim.


What part of the email message are you referring to? Basically,
mail.vim does spell checking only in the letter portion, not the
headers (or Subject: ...), etc.

I'm talking about the body, i.e. I'm just starting to write stuff at the
top without any headers.

  Leslie



Ah, there's your problem. In an email, everything until the first empty line 
is headers.


Add the following 4 lines at the top of your email:

From:
To:
Subject:


(i.e., 3 nonempty lines and one empty line). You may add more headers, and/or 
fill them in. Then your body text will be after the first empty line, and it 
will not be regaded as headers.



Best regards,
Tony.


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Tom Purl
 What part of the email message are you referring to? Basically,
 mail.vim does spell checking only in the letter portion, not the
 headers (or Subject: ...), etc.

 I'm talking about the body, i.e. I'm just starting to write stuff at the
 top without any headers.

   Leslie


 Ah, there's your problem. In an email, everything until the first
 empty line is headers.

 Add the following 4 lines at the top of your email:

 From:
 To:
 Subject:

 (i.e., 3 nonempty lines and one empty line). You may add more headers,
 and/or fill them in. Then your body text will be after the first
 empty line, and it will not be regaded as headers.

That's weird.  I use Gvim to edit web mail via the Mozex extension.  I
can place this is a tset at line one in my message after executing the
`set filetype=mail` command, and it will be spell-checked.  I don't have
to include any headers or empty lines or anything else like that.



Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Gary Johnson
On 2006-10-12, A.J.Mechelynck [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
  On Thu, Oct 12, 2006 at 04:18:21PM -0400, Charles E Campbell Jr wrote:
 
  Well, syntax/mail.vim *does* have a lot of NoSpell cluster referrals
  in it.
  You're right, I just looked at ftplugins/mail.vim.
 
  What part of the email message are you referring to? Basically,
  mail.vim does spell checking only in the letter portion, not the
  headers (or Subject: ...), etc.
  I'm talking about the body, i.e. I'm just starting to write stuff at the
  top without any headers.
 
Leslie
 
 
 Ah, there's your problem. In an email, everything until the first empty 
 line is headers.

I don't believe that's true in this case.  I hardly ever include any 
headers in the buffer when I'm editing e-mail messages, and syntax 
highlighting and spelling both work fine.

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Gary Johnson
On 2006-10-12, Charles E Campbell Jr [EMAIL PROTECTED] wrote:

 Basically, mail.vim does spell checking only in the letter 
 portion, not the headers (or Subject: ...), etc.

It checks spelling in Subject:, too, but not in the rest of the 
headers.

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA


Re: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread A.J.Mechelynck

Tom Purl wrote:
[...]

That's weird.  I use Gvim to edit web mail via the Mozex extension.  I
can place this is a tset at line one in my message after executing the
`set filetype=mail` command, and it will be spell-checked.  I don't have
to include any headers or empty lines or anything else like that.


Hm. Apparently you're right. By doing the following:

:new
:setl ft=mail
:setl spell
a
this is a tset

with a space at the end of the line, I get a blue curly underline under this 
and a red one under tset.



Do you have spell checking on? Normally yes, but still... what is the reply to

:verbose setlocal spell?

when you do it (with the question mark) in a window where the 'filetype' is 
set to mail but you don't see spell-check highlights? Unless you yourself 
set 'spell' on, e.g. by having set spell in your vimrc, Vim will by default 
do no spell-checking at all.



Best regards,
Tony.


RE: Vim7: Spell checking not working with ft=mail

2006-10-12 Thread Max Dyckhoff
Has spell been turned off by something? If you enter

:verbose set spell?

does it tell you if some plugin has been messing with your spell settings

FWIW: I tried this and it worked. Opena clean instance of vim, :set spell, 
insertthis is a tsetesc (observe highlighting), :set ft=mail (observe 
highlighting still present).

Max


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 12, 2006 1:38 PM
 To: Tom Purl
 Cc: vim@vim.org
 Subject: Re: Vim7: Spell checking not working with ft=mail

 On Thu, Oct 12, 2006 at 03:01:04PM -0500, Tom Purl wrote:

   I think that the mail filetype turns off spell checking if what
   you're text is after an arrow (, , etc.). Is that what you're
   doing?
  
   No, I wasn't quoting anything...
 
  Could you post an example of the text that isn't being spell-checked?
 Sure, here goes the whole file:

 SNIP ---
 this is a tset.
 SNIP ---

 when ft=mail is off, this is marked blue because it doesn't start with
 a capital 't' and tset is red, as it is obviously the victim of a
 typographic error.  With ft=mail on nothing shows up.

   Leslie

 --
 gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
 http://nic-nac-project.de/~skypher/