On 21-Sep-2013 19:48 +0200, David Woodfall wrote:

> On (21/09/13 16:37), Ingo Karkat <[email protected]> put forth the
> proposition:
>> 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:
> 
> Ah. That came from #vim.
> 
>> :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
> 
> No, it doesn't work for me either.
> I guess I will have to resort to using \ldots{} in tex, which is the
> correct way.
> 
> In the meantime if any solutions are forthcoming I'd be glad to see
> them.

Another observation: (With the default settings,) when there's an empty
line before a lowercase word, e.g. That

word <--, it always gets highlighted (except when 'spellcapcheck' is
completely empty, but also when it's set to something inapplicable like
:set spellcapcheck=x). How can I disable / influence that? It seems
there's an undocumented rule besides 'spellcapcheck' (btw, my
'spelllang' is "en_us"). Can please someone shed some light on this?!

-- regards, ingo

-- 
-- 
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