Sunday, April 15, 2018

Two spaces after punctuation and SpellCap issues

To reproduce:

$ vim -u NONE
:syntax on
:set spell cpo+=J

to let vim know I always put two spaces after a sentence. However,
if I enter text like

Call Bob re. the faucet.

or

Take Main St. the whole way down.

vim's syntax highlighting flags "the" in SpellCap as if it's
expecting the "." to mark the end of the sentence and require "the"
to be capitalized (as "z=" provides as its top suggestion).

My understanding is that the cpo+=J should require two spaces for it
to be considered a sentence, but it looks like it's ignoring this
flag when engaging the SpellCap group (which seems to think it's at
the end of a sentence).

Am I missing something or is this possibly a bug?

Thanks,

-tim



--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: