aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-24 11:30:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-24 11:30:35 +1200
commitbc93bca41de4c1e4dba6e80be5422e30a814e111 (patch)
treeb530002c0b165e042cb88d818a6c89f3954544b9
parentMerge branch 'release/v6.43.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-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--VERSION4
-rw-r--r--vim/vimrc14
2 files changed, 16 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 4f47fb70..5021d22b 100644
--- a/VERSION
+++ b/VERSION
@@ -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
diff --git a/vim/vimrc b/vim/vimrc
index e88fe8b0..8cef812f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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,