From: Simon Ruderich Date: Sat, 14 Nov 2009 13:40:38 +0000 (+0100) Subject: vimrc: Improve check for spelling support. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=85e5af4da2b16b8a0e088bb67937ba18067a52e9;p=config%2Fdotfiles.git vimrc: Improve check for spelling support. --- diff --git a/vimrc b/vimrc index fbf5a87..f90d072 100644 --- a/vimrc +++ b/vimrc @@ -81,7 +81,7 @@ set smartcase " Activate spell checking, use English as default. Don't use spell checking " when diffing. -if v:version >= 700 && !&diff +if v:version >= 700 && has('syntax') && !&diff set spell set spelllang=en_us endif