From: Simon Ruderich Date: Thu, 15 Nov 2012 20:22:22 +0000 (+0100) Subject: vimrc: Disable spell mappings if there's no spell support. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=da7b1cd63c5ed062102aecdbff66ac195a22d61f vimrc: Disable spell mappings if there's no spell support. --- diff --git a/vimrc b/vimrc index 3f94aef..825aa4e 100644 --- a/vimrc +++ b/vimrc @@ -542,6 +542,11 @@ if exists('+spell') nnoremap sn :set nospell nnoremap se :set spell spelllang=en_us nnoremap sd :set spell spelllang=de_de +" If no spell support is available, these mappings do nothing. +else + nmap sn + nmap se + nmap sd endif " Add semicolon to the end of the line. Thanks to