diff options
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/vimrc | 14 |
2 files changed, 16 insertions, 2 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v6.43.0 -Sun, 23 Jun 2019 23:06:42 +0000 +tejr dotfiles v6.44.0 +Sun, 23 Jun 2019 23:30:34 +0000 @@ -411,6 +411,20 @@ let &spellfile = $MYVIM.'/cache/spell/'.join([ \,'add' \], '.') +" Spell checking includes optional support for catching lowercase letters at +" the start of sentences, and defines a pattern in 'spellcapcheck' for the end +" of a sentence. The default is pretty good, but with two-spacing with +" 'cpoptions' including 'J' and 'formatoptions' including 'p' as set later in +" this file, we can be less ambiguous in this pattern. We requre two +" consecutive spaces, a newline, a carriage return, or a tab to mark the end +" of a sentence. This means that we could make abbreviations like "i.e. +" something" without flatting "something" as a spelling error. +" +" We use :let syntax rather than :set here, just to avoid a whole bunch of +" annoying escaping for the value. +" +let &spellcapcheck = '[.?!]\%( \|[\n\r\t])' + " For word completion in insert mode with CTRL-X CTRL-K, or if 'complete' " includes the 'k' flag, the 'dictionary' option specifies the path to the " system word list. This makes the dictionary completion work consistently, |