From 8c3fac17e032443715a8279244d3253dd503bfca Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 13 May 2009 16:33:14 +0200 Subject: [PATCH] vimrc: Only define spell maps if spell checking is possible. --- vimrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index ebda7f3..e640a42 100644 --- a/vimrc +++ b/vimrc @@ -118,9 +118,11 @@ nnoremap nnoremap - " Maps to change spell language between English and German and disable it. -map sn :set nospell -map se :set spell spelllang=en_us -map sd :set spell spelllang=de_de +if v:version >= 700 + map sn :set nospell + map se :set spell spelllang=en_us + map sd :set spell spelllang=de_de +endif " Add semicolon to the end of the line. Thanks to " http://www.van-laarhoven.org/vim/.vimrc for this idea and godlygeek in #vim -- 2.45.2