diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-24 11:30:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-24 11:30:35 +1200 |
commit | bc93bca41de4c1e4dba6e80be5422e30a814e111 (patch) | |
tree | b530002c0b165e042cb88d818a6c89f3954544b9 | |
parent | Merge branch 'release/v6.43.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-bc93bca41de4c1e4dba6e80be5422e30a814e111.tar.gz dotfiles-bc93bca41de4c1e4dba6e80be5422e30a814e111.zip |
Merge branch 'release/v6.44.0'v6.44.0
* release/v6.44.0:
Add two-spacers definition for 'spellcapcheck'
-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, |