aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-06-11 10:42:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-06-11 10:42:27 +1200
commit1bb367755fa6092d209723944604a1c02da2fb25 (patch)
treed34e8f56fc98243fd9a497ac8a635fe958ee4b77
parentMerge branch 'release/v9.21.0' into develop (diff)
downloaddotfiles-1bb367755fa6092d209723944604a1c02da2fb25.tar.gz
dotfiles-1bb367755fa6092d209723944604a1c02da2fb25.zip
Add 'spelloptions' `camel` flag in Vim
-rw-r--r--vim/vimrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 4526dbc1..f276cb92 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -2,7 +2,7 @@
" Tom Ryder (tejr)’s Literate Vimrc
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"
-" Last updated: Sun, 07 Jun 2020 23:23:04 UTC
+" Last updated: Wed, 10 Jun 2020 22:41:57 UTC
"
" │ And I was lifted up in heart, and thought
" │ Of all my late-shown prowess in the lists,
@@ -401,6 +401,17 @@ set spelllang=en_nz
"
set spellcapcheck=[.?!]\\%(\ \ \\\|[\\n\\r\\t]\\)
+" When spell-checking snakeCased or CamelCased words, treat every upper-case
+" character in a word text object as the beginning of a new word for separate
+" spell-checking. At the time of writing, this is still a very new option
+" (v8.2.0953, June 2020).
+"
+" <https://github.com/vim/vim/releases/tag/v8.2.0953>
+"
+if exists('+spelloptions')
+ set spelloptions+=camel
+endif
+
" 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,