Hi Ingo!

On Sa, 21 Sep 2013, Ingo Karkat wrote:

> On 21-Sep-2013 05:38 +0200, David Woodfall wrote:
> 
> > I've noticed that the default spellcheckcap setting marks words as bad
> > after an ellipsis if they are not capitalised.
> > 
> > In fiction writing at least it is common to have an ellipsis and a
> > non-capitalised next word.
> > 
> > This is the setting that I'm currently using to fix this:
> > 
> > set spellcapcheck="[.?!]\_[\])'"' \t...]\+")
> > 
> > Might I suggest that this is used for the default? There may be better
> > ways of doing it but my regexp is not strong.
> > 
> 
> Apart from the syntax errors, that expression doesn't work. You're just
> including the "." character thrice in the [] collection. Rather,
> something like the following is needed:
> 
> :let &spellcapcheck='\%(\.\@<!\.\|[?!]\)\_[\])''"^I ]\+'
> 
> However, this doesn't work for me (Vim 7.3.823). I still get the
> SpellCap highlighting on following words, even though there are no
> matches after a "foo... bar" when I do :let @/ = &spc

The algorithm, to set the SpellCap highlighting seems a little strange, 
since it doesn't use the 'spc' setting. I haven't fully understand this 
yet, so I can't propose a change yet. (Check the spell_check() and 
win_line() function, that calls spell_check()).

regards,
Christian
-- 
Den guten Steuermann lernt man erst im Sturme kennen.
                -- Lucius Annaeus Seneca (4-65 n.Chr.)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui