]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Improve check for spelling support.
authorSimon Ruderich <simon@ruderich.org>
Sat, 14 Nov 2009 13:40:38 +0000 (14:40 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 14 Nov 2009 13:40:38 +0000 (14:40 +0100)
vimrc

diff --git a/vimrc b/vimrc
index fbf5a87cfb4e8f16e589b832493ff7e82ede6979..f90d0724ed34d2d72b25d75cbf86464e1f6464c1 100644 (file)
--- 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