diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-06-11 10:42:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-06-11 10:42:27 +1200 |
commit | 1bb367755fa6092d209723944604a1c02da2fb25 (patch) | |
tree | d34e8f56fc98243fd9a497ac8a635fe958ee4b77 /vim/vimrc | |
parent | Merge branch 'release/v9.21.0' into develop (diff) | |
download | dotfiles-1bb367755fa6092d209723944604a1c02da2fb25.tar.gz dotfiles-1bb367755fa6092d209723944604a1c02da2fb25.zip |
Add 'spelloptions' `camel` flag in Vim
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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, |