From: Simon Ruderich Date: Wed, 13 May 2009 14:33:14 +0000 (+0200) Subject: vimrc: Only define spell maps if spell checking is possible. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=8c3fac17e032443715a8279244d3253dd503bfca;p=config%2Fdotfiles.git vimrc: Only define spell maps if spell checking is possible. --- 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