From da7b1cd63c5ed062102aecdbff66ac195a22d61f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 15 Nov 2012 21:22:22 +0100 Subject: [PATCH] vimrc: Disable spell mappings if there's no spell support. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.45.2