From 069bee78ca022466330b29400e720187ab096c7f Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 15 Apr 2024 19:46:37 -0400 Subject: [PATCH] Fix errors from camel spell --- configs/vim/.vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/vim/.vimrc b/configs/vim/.vimrc index d411eae..51f36c7 100644 --- a/configs/vim/.vimrc +++ b/configs/vim/.vimrc @@ -55,7 +55,11 @@ let g:netrw_browse_split = 3 if !exists('g:vscode') set spell set spelllang=en_ca,en_us - set spelloptions=camel + + " Note: This only works on vim 8.2.0953 or later (or nvim 0.5) + if has('nvim-0.5') || v:version >= 802 || has('patch-8.2.0953') + set spelloptions=camel + endif " Hide spellcheck highlights I don't care about hi clear SpellCap